Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 /// <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;
 }