public void RemoveParent(CollectionOfChild col) { if (this.Parent != col) { throw new Exception("Removing parent that isn't the parent"); } this._Parent = null; }
public void UpdateParent(CollectionOfChild col) { if (col.Contains(this)) { this._Parent = col; } else { throw new Exception("Only collection can invoke this"); } }