Exemplo n.º 1
0
 /// <summary>
 /// Creates a deep copy of the passed object.
 /// </summary>
 /// <param name="old">A <b>Machine</b> object to create the deep copy from.</param>
 private void CopyMembers(Machine old)
 {
     this.hostName      = old.hostName;
     this.adminUrl      = new ExpressionProperty(old.adminUrl);
     this.deployUncPath = new ExpressionProperty(old.deployUncPath);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Copy contructor for doing deep copy of the <b>Machine</b> objects.
 /// </summary>
 /// <param name="old">The <b>Machine</b> to copy from.</param>
 public Machine(Machine old)
     : base(old)
 {
     CopyMembers(old);
 }