public static CustomerWithBirthday CreateCustomerWithBirthday(Address address, global::System.Guid guidValue, int ID, global::System.DateTimeOffset birthday) { CustomerWithBirthday customerWithBirthday = new CustomerWithBirthday(); if ((address == null)) { throw new global::System.ArgumentNullException("address"); } customerWithBirthday.Address = address; customerWithBirthday.GuidValue = guidValue; customerWithBirthday.ID = ID; customerWithBirthday.Birthday = birthday; return(customerWithBirthday); }
private static object GetClone(object resource) { object clone; if (resource.GetType() == typeof(Customer)) { Customer original = (Customer)resource; clone = new Customer { ID = original.ID }; original.Clone(clone); } else { CustomerWithBirthday original = (CustomerWithBirthday)resource; clone = new CustomerWithBirthday { ID = original.ID }; original.Clone(clone); } return(clone); }
public static CustomerWithBirthday CreateCustomerWithBirthday(Address address, global::System.Guid guidValue, int ID, global::System.DateTimeOffset birthday) { CustomerWithBirthday customerWithBirthday = new CustomerWithBirthday(); if ((address == null)) { throw new global::System.ArgumentNullException("address"); } customerWithBirthday.Address = address; customerWithBirthday.GuidValue = guidValue; customerWithBirthday.ID = ID; customerWithBirthday.Birthday = birthday; return customerWithBirthday; }