Why can't a DataMember in WCF return Type?

前端 未结 2 1311
温柔的废话
温柔的废话 2021-01-17 14:18

Trying to get this to work, with no luck:

[DataMember]
public Type ParameterType { get; set;}
2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 14:54

    Web Services, in general, are meant to be cross-platform. What would a Java program do with a System.Type from .NET?

    Also, what part of Type would you like to see serialized, and how would you like to see it deserialized?

提交回复
热议问题