/// <summary>
 /// Creates a clone of this instance
 /// </summary>
 /// <returns>Clone of this instance</returns>
 public object Clone()
 {
     return(new Layer
     {
         Duration = Duration,
         Height = Height,
         Filament = (float[])Filament.Clone(),
         FractionPrinted = FractionPrinted
     });
 }
Пример #2
0
 /// <summary>
 /// Creates a clone of this instance
 /// </summary>
 /// <returns>A clone of this instance</returns>
 public object Clone()
 {
     return(new ParsedFileInfo
     {
         FileName = (FileName != null) ? string.Copy(FileName) : null,
         Size = Size,
         LastModified = LastModified,
         Height = Height,
         FirstLayerHeight = FirstLayerHeight,
         LayerHeight = LayerHeight,
         NumLayers = NumLayers,
         Filament = (float[])Filament.Clone(),
         GeneratedBy = string.Copy(GeneratedBy),
         PrintTime = PrintTime,
         SimulatedTime = SimulatedTime
     });
 }