Esempio n. 1
0
        public TestCustomer[] GetCustomerArray()
        {
            TestCustomer[] customers = new TestCustomer[2];

            TestCustomer cust = customers[1];

            cust.Name           = "Rick Strahl";
            cust.Company        = "West Wind";
            cust.Entered        = DateTime.Now;
            cust.Address.City   = "Paia";
            cust.Address.Street = "32 Kaiea";

            cust                = customers[2];
            cust.Name           = "Jimmy Row";
            cust.Company        = "East Wind";
            cust.Entered        = DateTime.Now;
            cust.Address.City   = "Hood River";
            cust.Address.Street = "301 15th Street";

            return(customers);
        }
        public int PassCustomerArray(TestCustomer[] customers)
        {
            if (customers != null)
                return customers.Length;

            return 0;
        }
        public TestCustomer[] GetCustomerArray()
        {
            TestCustomer[] customers = new TestCustomer[2];

            TestCustomer cust = customers[1];
            cust.Name = "Rick Strahl";
            cust.Company = "West Wind";
            cust.Entered = DateTime.Now;
            cust.Address.City = "Paia";
            cust.Address.Street = "32 Kaiea";

            cust = customers[2];
            cust.Name = "Jimmy Row";
            cust.Company = "East Wind";
            cust.Entered = DateTime.Now;
            cust.Address.City = "Hood River";
            cust.Address.Street = "301 15th Street";

            return customers;
        }