コード例 #1
0
ファイル: Program.cs プロジェクト: Jerflem1387/July6Troop2015
 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
ファイル: Program.cs プロジェクト: kwwaddel/July6Troop2015
        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";
        }