示例#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;
 }
示例#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);
 }
示例#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);
 }
示例#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;
 }