I am returning a list with my WCF method. In my client code, this is the return type show as the MyObact [] I want to use either MyObject [], or IList, or IEnumerable ...
WCFClient myClient = new WCFClient (); MyObject [] list = myClient.GetMyStuff (); Or IILIT & lt; MyObject & gt; List = myClient.GetMyStuff (); Or IEnumerable & lt; MyObject & gt; List = myClient.GetMyStuff ();
What I am doing is collecting this collection and binding it on the grid. What is the best object to specify my returned collection?
You can specify that you want to use normal when you add a reference By clicking on the Advanced button or you can right click on the service context and choose Configure to change it in place.
The reason for this is that the WCF serialize generic lists are sending svcutil to create a proxy for the array of arrays to send to the wires, which takes them back to the normal list for your convenience.
Comments
Post a Comment