G
Guest
hello all, i have two base classes, one inherits from bindinglist<>
i need baseobject contains a generic reference to collection that contains it
class baseobject<T> : where T:baseobjectcollection<baseobject<T>>
class baseobjectcollection<T> : BindingList<T> where
T:baseobject<baseobjectcollection<T>>
i'm getting compile error with this. i'm not sure if it's a syntax error or
what i'm trying it's impossible, without generics of course not problem
class baseobject
{
private baseobjectcollection m_colRef;
}
thank you
i need baseobject contains a generic reference to collection that contains it
class baseobject<T> : where T:baseobjectcollection<baseobject<T>>
class baseobjectcollection<T> : BindingList<T> where
T:baseobject<baseobjectcollection<T>>
i'm getting compile error with this. i'm not sure if it's a syntax error or
what i'm trying it's impossible, without generics of course not problem
class baseobject
{
private baseobjectcollection m_colRef;
}
thank you