0

can anyone find out what d hell is wrong with the last line of this code (c#.net):

cws = new CustomerCardService.CustomerCardWebReference_Service();
cws.UseDefaultCredentials = true;
cwr = new CustomerCardService.CustomerCardWebReference();

List<CustomerCardService.CustomerCardWebReference_Filter> filterArray = new List<CustomerCardService.CustomerCardWebReference_Filter>();

CustomerCardService.CustomerCardWebReference_Filter nameFilter = new CustomerCardService.CustomerCardWebReference_Filter();
           
filterArray.Add(nameFilter);
           
Customer[] custList = cws.ReadMultiple(filterArray.ToArray(), null, 100);

here is the error. really doesn't make sense as iv followed the msdn example fairly closely....

Error 1 Cannot implicitly convert type 'CustomerCardService.CustomerCardWebReference[]' to 'Customer[]'

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by tcon
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.