I am trying to generate proxy for a wcf service through command line. As required, I am using *svcutil.exe.
There are bunch of services which I need to create proxies for. A sample command is shown below. Everything goes humming about generation of proxies.
For one of the proxy I need to have Collection type as List instead of Array which is default. However, with explicitly mentioned like below, I am not able to get the collectiontype correct. The resulting proxy still has Array type for collections. There are no errors while execution of these commands. Not sure what's going around.
svcutil.exe http://localhost/DealService.svc /noLogo
/out:D:/Proxies/DealServiceReference.cs /n:*,MyApp.WinUI.DealServiceReference
/ct:System.Collections.Generic.List`1
Does anyone know, why would I be getting default collectiontype despite of explicit mention? Does anyone know how to get it right?
(Subquestion - All the examples I have seen for defining collectiontype as list, the mysterious `1 appears at the end of System.Collections.Generic.List but I could not understand the need of it, neither I could get a valid explanation somewhere. So if someone could throw light on that, it would be great.)