private static void SetParent(object target, object parent) { IChildObject child = target as IChildObject; if (child != null) { child.Parent = parent; } }
private static StateDictionary CreateState(object target) { StateDictionary ret = new StateDictionary(); IChildObject child = target as IChildObject; if (child != null) { ret.Add("parent", child.Parent); } return(ret); }
public ParentClass(IChildObject child) { Child = child; H.Activate(this); }