【发布时间】:2019-08-22 07:42:16
【问题描述】:
我有一个相当简单的 WCF 服务,它来回发送传感器状态。
其中一个类型包含Type 类型的属性
public class SensorValue
{
public string Name { get; set; }
public string Value { get; set; }
public Type ValueType { get; set; }
}
当我通过 WCF 检索传感器值列表时,我收到主题中提到的错误。
我不允许通过 WCF(反)序列化 Type 是否有明显的原因?
【问题讨论】:
-
Type是System.Type,对吧? -
对不起,确实