Beispiel #1
0
 public static DxfBlockPolarStretchAction.StretchEntity[] Clone(
     DxfBlockPolarStretchAction.StretchEntity[] cloneFrom,
     CloneContext cloneContext)
 {
     if (cloneFrom == null)
     {
         return((DxfBlockPolarStretchAction.StretchEntity[])null);
     }
     DxfBlockPolarStretchAction.StretchEntity[] stretchEntityArray = new DxfBlockPolarStretchAction.StretchEntity[cloneFrom.Length];
     for (int index = 0; index < cloneFrom.Length; ++index)
     {
         stretchEntityArray[index] = DxfBlockPolarStretchAction.StretchEntity.Clone(cloneFrom[index], cloneContext);
     }
     return(stretchEntityArray);
 }
Beispiel #2
0
 public static DxfBlockPolarStretchAction.StretchEntity Clone(
     DxfBlockPolarStretchAction.StretchEntity cloneFrom,
     CloneContext cloneContext)
 {
     DxfBlockPolarStretchAction.StretchEntity stretchEntity = new DxfBlockPolarStretchAction.StretchEntity();
     stretchEntity.Entity = cloneContext.SourceModel == cloneContext.TargetModel ? cloneFrom.Entity : (DxfHandledObject)cloneContext.Clone((IGraphCloneable)cloneFrom.Entity);
     if (cloneFrom.PointIndexes == null)
     {
         stretchEntity.PointIndexes = (int[])null;
     }
     else
     {
         stretchEntity.PointIndexes = new int[cloneFrom.PointIndexes.Length];
         cloneFrom.PointIndexes.CopyTo((Array)stretchEntity.PointIndexes, 0);
     }
     return(stretchEntity);
 }