When configuring our service references in Silverlight, there is an option to choose the collection type that is generated for calls that return arrays, like so:
It is an option that you can see when you use th开发者_运维技巧e 'configure service reference' context menu item. I'd upload an image, but I can't do that from work...
I was wondering if there was a way to configure them on a per-call basis, so that I could have an observable collection in some cases, or an array in others? Is this type of thing possible?
It seems that out of the box, no, this type of configuration is not possible. I did stumble across a similar question while doing research on third party tools however.
How can I customize WCF client code generation?
Its answer lists a number of different option for generating client code that is custom tailored to your needs. I haven't tried any of them out though.
精彩评论