I have a WCF service, in which one of the method(or operation contract) uses a generic list of certain type as a parameter, however when i try to consume this service, and call this particular method i get this error
Cannot convert type 'System.Collections.Generic.List<CA.CCS.sCmd>' to 'CA.CCS.sCmd[]'
I don’t know why an object array is expected instead of a generic list in the consumer code.
I want to send that parameter as generic list only, without any conversions on client or server, since it hampers the service performance.
I have found similar questions on stack overflow, but none solving my problem.
your response, or link to other’s response will be greatly appreciated.
Update :
I get this window when i try to add service reference, can’t find any settings here

Because you’re still using VS2005, and your proxy generator apparently wants to turn this into an array parameter, you’ll just have to convert your
List<T>to aT[]whenever you call this method.Since you have a
List<T>instance, you can just use itsToArraymethod (supported since .NET 2.0). So instead of callingSomeMethod(myList), you can doSomeMethod(myList.ToArray()).