//creates a parallel tree -- should NOT retain references into old tree public XObject ShallowCopy() { XObject copy = NewInstance(); copy.ShallowCopyFrom(this); return(copy); }
//creates a parallel tree -- should NOT retain references into old tree public XObject ShallowCopy() { XObject copy = NewInstance(); Debug.Assert(copy.GetType() == this.GetType()); copy.ShallowCopyFrom(this); Debug.Assert(copy.region == this.region); return(copy); }