Example #1
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfXRecord dxfXrecord = (DxfXRecord)from;

            this.duplicateRecordCloningFlag_0 = dxfXrecord.duplicateRecordCloningFlag_0;
            this.dxfXRecordValueCollection_0.Clear();
            foreach (DxfXRecordValue dxfXrecordValue in (List <DxfXRecordValue>)dxfXrecord.dxfXRecordValueCollection_0)
            {
                this.dxfXRecordValueCollection_0.Add((DxfXRecordValue)dxfXrecordValue.Clone(cloneContext));
            }
        }
Example #2
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfXRecord dxfXrecord = (DxfXRecord)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfXrecord == null)
            {
                dxfXrecord = new DxfXRecord();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfXrecord);
                dxfXrecord.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfXrecord);
        }