Dictionary<int, MyObject> is unsupported in Ria services. Do you know how it can be exposed to client application?
One of my class has a property:
Dictionary<int, MyO开发者_JS百科bject>
I get the error that it is unsupported. Is there a way to expose Dictionary via Ria service?
You can create a System.ObjectModel.KeyedCollection<int, MyObject> which will then be passed over the wire. For some reason the serializer doesn't support Dictionaries,
Google is your friend. ;o)
It looks like you cannot use complex types here.
精彩评论