C
cody
class Test
{
IList list = new ArrayList();
MyCollection list2 = new MyCollection (list);
}
Leads to this error. I know I could initialize them in the ctor but I'm
asking myself where this restriction come from. Aren't the initializers
called in a well defined order or what is the problem here?
{
IList list = new ArrayList();
MyCollection list2 = new MyCollection (list);
}
Leads to this error. I know I could initialize them in the ctor but I'm
asking myself where this restriction come from. Aren't the initializers
called in a well defined order or what is the problem here?