Пример #1
0
        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);
        }
Пример #2
0
 public IGraphCloneable Clone(IGraphCloneable sourceObject)
 {
     return(sourceObject?.Clone(this));
 }