开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜