Esempio n. 1
0
        //creates a parallel tree -- should NOT retain references into old tree
        public XObject ShallowCopy()
        {
            XObject copy = NewInstance();

            copy.ShallowCopyFrom(this);
            return(copy);
        }
Esempio n. 2
0
        //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);
        }