public IGraphCloneable GetExistingClone(IGraphCloneable sourceObject) { if (sourceObject == null) { return((IGraphCloneable)null); } IGraphCloneable graphCloneable; this.dictionary_0.TryGetValue(sourceObject, out graphCloneable); return(graphCloneable); }
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); }
public void RegisterClone(IGraphCloneable sourceObject, IGraphCloneable clonedObject) { this.dictionary_0.Add(sourceObject, clonedObject); }
public IGraphCloneable Clone(IGraphCloneable sourceObject) { return(sourceObject?.Clone(this)); }
public override void RegisterClone(CloneContext cloneContext, IGraphCloneable clone) { base.RegisterClone(cloneContext, clone); cloneContext.CloneBuilders.Add((ICloneBuilder) new DxfBlock.Class751(this, (DxfBlock)clone)); }