コード例 #1
0
 public PersonWithCopyConstructor(PersonWithCopyConstructor personWithCopyConstructor)
 {
     Name    = personWithCopyConstructor.Name;
     Address = new AddressWithCopyConstructor(personWithCopyConstructor.Address);
 }
コード例 #2
0
 public AddressWithCopyConstructor(AddressWithCopyConstructor address)
 {
     Street     = address.Street;
     City       = address.City;
     PostalCode = address.PostalCode;
 }
コード例 #3
0
 public PersonWithCopyConstructor(string name, AddressWithCopyConstructor address)
 {
     Name    = name;
     Address = address;
 }