I know I have done this before but I am getting my constructor order of execution in a twist I think....
public class Class1
{
Class2 _class2;
public Class1()
{
_class2 = new Class2(this);
}
}
public class Class2
{
Class1 _parent; //corrected typo
public Class2(Class1 parent)
{
_parent = parent;
}
}
trouble is that parent always ends up null.
What's the proper way to do this? (maybe I can blame my slowness on having a cold..)
EDITED TO CORRECT THE TYPO (which isn't the problem in the real code!)