开发者

Dictionary<int, MyObject> is unsupported in Ria services. Do you know how it can be exposed to client application?

开发者 https://www.devze.com 2023-02-13 06:23 出处:网络
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.Objec

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

精彩评论

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