protected virtual void ShallowCopyFrom(XObject copyFrom) { this.region = copyFrom.region; //immutable value type }
public XAttributeCollection(XObject parent) { Debug.Assert(parent != null); this.parent = parent; }
public void AssertNodeIs <T> () { XObject n = Nodes.Peek(); Assert.IsTrue(n is T, "Node is {0}, not {1}", n.GetType().Name, typeof(T).Name); }