开发者

What is the format of generic returned types?

开发者 https://www.devze.com 2023-03-13 09:13 出处:网络
i serialize and post generic types in wcf services and receive it as a json. the format of serialized objects {\'__type\':\'MyClass:#namespace\', ...}.

i serialize and post generic types in wcf services and receive it as a json. the format of serialized objects {'__type':'MyClass:#namespace', ...}.

i use __type value to create key value pairs like: MyClass:{x:y, ...} on c开发者_如何学Client side using js.

now i want to do the same thing with generic types i get from wcf services. it is appended a set of hash like numbers and chars. does anybody know the format of the additional char set? does it follow a specific pattern that helps me to remove it using regex?


The data contract name for generic types can be customized to remove the hash part - see Data Contract Names for more information.

0

精彩评论

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