Ejemplo 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;
 }
Ejemplo 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);
 }
Ejemplo 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);
 }
Ejemplo 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;
 }