コード例 #1
0
ファイル: DiskVolume.cs プロジェクト: theresadower/graywulf
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Disk Volume</b> object to create the deep copy from.</param>
 private void CopyMembers(DiskVolume old)
 {
     this.diskVolumeType = old.diskVolumeType;
     this.localPath      = new ExpressionProperty(old.localPath);
     this.uncPath        = new ExpressionProperty(old.uncPath);
     this.fullSpace      = old.fullSpace;
     this.allocatedSpace = old.allocatedSpace;
     this.reservedSpace  = old.reservedSpace;
     this.speed          = old.speed;
 }
コード例 #2
0
ファイル: DiskVolume.cs プロジェクト: horvatferi/graywulf
 /// <summary>
 /// Copy contructor for doing deep copy of the <b>Disk Volume</b> objects.
 /// </summary>
 /// <param name="old">The <b>Disk Volume</b> to copy from.</param>
 public DiskVolume(DiskVolume old)
     : base(old)
 {
     CopyMembers(old);
 }
コード例 #3
0
ファイル: DiskVolume.cs プロジェクト: theresadower/graywulf
 /// <summary>
 /// Copy contructor for doing deep copy of the <b>Disk Volume</b> objects.
 /// </summary>
 /// <param name="old">The <b>Disk Volume</b> to copy from.</param>
 public DiskVolume(DiskVolume old)
     : base(old)
 {
     CopyMembers(old);
 }
コード例 #4
0
ファイル: DiskVolume.cs プロジェクト: horvatferi/graywulf
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Disk Volume</b> object to create the deep copy from.</param>
 private void CopyMembers(DiskVolume old)
 {
     this.diskVolumeType = old.diskVolumeType;
     this.localPath = new ExpressionProperty(old.localPath);
     this.uncPath = new ExpressionProperty(old.uncPath);
     this.fullSpace = old.fullSpace;
     this.allocatedSpace = old.allocatedSpace;
     this.reservedSpace = old.reservedSpace;
     this.speed = old.speed;
 }