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.
精彩评论