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