public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext) { base.CopyFrom(from, cloneContext); DxfBlockGripExpression blockGripExpression = (DxfBlockGripExpression)from; this.ActionConnection = (DxfConnectionPoint)cloneContext.Clone((IGraphCloneable)blockGripExpression.ActionConnection); }
public override IGraphCloneable Clone(CloneContext cloneContext) { DxfBlockGripExpression blockGripExpression = (DxfBlockGripExpression)cloneContext.GetExistingClone((IGraphCloneable)this); if (blockGripExpression == null) { blockGripExpression = new DxfBlockGripExpression(); cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)blockGripExpression); blockGripExpression.CopyFrom((DxfHandledObject)this, cloneContext); } return((IGraphCloneable)blockGripExpression); }