I have the following issue:
public class ChildClass{
public Object Parent = null;
}
public class ParentClass{
public ChildClass CreateChild(){
return new ChildClass{ Parent = this; }
}
}
I got a bit stuck understanding object initializers. In the CreateChild() method, does this refer to ParentClass or ChildClass?