public virtual IGraphCloneable Clone(CloneContext cloneContext) { DxfObjectReference dxfObjectReference = (DxfObjectReference)cloneContext.GetExistingClone((IGraphCloneable)this); if (dxfObjectReference == null) { if (cloneContext.TargetModel == cloneContext.SourceModel) { dxfObjectReference = this; } else { dxfObjectReference = new DxfObjectReference(); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfObjectReference); IGraphCloneable idxfHandledObject0 = (IGraphCloneable)this.idxfHandledObject_0; dxfObjectReference.Value = (IDxfHandledObject)idxfHandledObject0.Clone(cloneContext); } } return((IGraphCloneable)dxfObjectReference); }
public virtual void RegisterClone(CloneContext cloneContext, IGraphCloneable clone) { cloneContext.RegisterClone((IGraphCloneable)this, clone); }