为什么 WCF 中的 DataMember 不能返回类型?
问题描述:
试图让它发挥作用,但没有运气:
Trying to get this to work, with no luck:
[DataMember]
public Type ParameterType { get; set;}
答
Web 服务通常是跨平台的.Java 程序将如何处理来自 .NET 的 System.Type?
Web Services, in general, are meant to be cross-platform. What would a Java program do with a System.Type from .NET?
另外,您希望 Type 的哪一部分被序列化,您希望它如何反序列化?
Also, what part of Type would you like to see serialized, and how would you like to see it deserialized?