1. 首页
  2. 编程语言
  3. C#
  4. WCF中动态设置KnownType的示例

WCF中动态设置KnownType的示例

上传者: 2020-08-18 19:47:52上传 ZIP文件 143.57KB 热度 22次
动态配置Known Types,解决WCF动态扩展属性类型的问题: Unhandled Exception: System.Runtime.Serialization.SerializationException: Type '--------' with data contract name 'Dog:http://schemas.datacontract.org/2004/07/Serialization' is not expected. Consider using a DataContractResolver or add any types not known statically
用户评论