Chapter 11: Deploying Web Services with WCF 333
Most of the items in the Service Reference Settings are advanced options, but focus
on the Collection Type setting in the Data Type section. Switch the Collection Type from
System.Array to System.Collections.Generic.List and click OK to close. Then change the
previous call to GetCustomers to the following:
C#:
List<Customer> customers = svc.GetCustomers();
VB:
Dim cust As New Customer
cust = svc.GetCustomer(newCustID)
Figure 11-13 The Service Reference Settings window