开发者

What is the format of generic returned types?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜