Exemplo n.º 1
0
 public PersonWithCopyConstructor(PersonWithCopyConstructor personWithCopyConstructor)
 {
     Name    = personWithCopyConstructor.Name;
     Address = new AddressWithCopyConstructor(personWithCopyConstructor.Address);
 }
Exemplo n.º 2
0
 public AddressWithCopyConstructor(AddressWithCopyConstructor address)
 {
     Street     = address.Street;
     City       = address.City;
     PostalCode = address.PostalCode;
 }
Exemplo n.º 3
0
 public PersonWithCopyConstructor(string name, AddressWithCopyConstructor address)
 {
     Name    = name;
     Address = address;
 }