Пример #1
0
 static void Main(string[] args)
 {
     Customer cust1 = new Customer
     {
         BillingAddress =
         {
             City = "houston",
             Street = "223 lsjkdf",
             Zip = "77845"
         },
         ShippingAddress =
         {
             City = "Seabrook",
             Street = "nasa pky",
             Zip = "77845"
         },
         FirstName = "Jeremy",
         LastName = "Fleming"
     };
 }
Пример #2
0
        static void Main(string[] args)
        {
            Customer cust1 = new Customer
            {
                BillingAddress =
                {
                    City = "Houston",
                    Street = "3242 asdf",
                    ZIP = "3423"
                },
                ShippingAddress =
                {
                    City = "Pearland",
                    Street = "23984",
                    ZIP = "@3432"
                },
                FirstName = "Nick",
                LastName = "Brittain"
            };

            Customer cust2 = new Customer();
            cust2.BillingAddress.City = "Houston";
            cust2.BillingAddress.Street = "234323";
            cust2.BillingAddress.ZIP = "238423";
            cust2.FirstName = "Nick";
        }