Пример #1
0
        public IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfConnectionPoint dxfConnectionPoint = (DxfConnectionPoint)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfConnectionPoint == null)
            {
                dxfConnectionPoint = new DxfConnectionPoint();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfConnectionPoint);
                dxfConnectionPoint.CopyFrom(cloneContext, this);
            }
            return((IGraphCloneable)dxfConnectionPoint);
        }
Пример #2
0
 public static DxfConnectionPoint[] Clone(
     CloneContext cloneContext,
     DxfConnectionPoint[] cloneFrom)
 {
     if (cloneFrom == null)
     {
         return((DxfConnectionPoint[])null);
     }
     DxfConnectionPoint[] dxfConnectionPointArray = new DxfConnectionPoint[cloneFrom.Length];
     for (int index = 0; index < cloneFrom.Length; ++index)
     {
         dxfConnectionPointArray[index] = (DxfConnectionPoint)cloneContext.Clone((IGraphCloneable)cloneFrom[index]);
     }
     return(dxfConnectionPointArray);
 }
Пример #3
0
 protected virtual void CopyFrom(CloneContext cloneContext, DxfConnectionPoint from)
 {
     this.graphNodeId_0 = (DxfEvalGraph.GraphNodeId)cloneContext.Clone((IGraphCloneable)from.graphNodeId_0);
     this.string_0      = from.string_0;
 }
Пример #4
0
 protected virtual void CopyFrom(CloneContext cloneContext, DxfBlockParameterPropertyInfo from)
 {
     this.dxfConnectionPoint_0 = DxfConnectionPoint.Clone(cloneContext, from.dxfConnectionPoint_0);
 }