topher-b
4/15/2015 - 4:15 PM

How to handle parent CS files

How to handle parent CS files

ChildClassName childSpecificName = new ChildCLassName(this);

|| OR ||

public partial class ParentClassName
{
  private ChildClassName _childSpecificName;

  public ParentClasName()
  {
    _childSpecificName = new ChildCLassName(this);
  }
}
public partial class ChildClassName
{
  private ParentClassName _parent;

  public ChildClasName(ParentClassName parent)
  {
    _parent = parent;
  }
}