如何重用 SerializableDictionary<string,string> DataMember?

问题描述

我在一个库中有一个类,该类在 WCF DataContract 上公开给 2 个不同的客户端。

当我添加 SerializableDictionary 成员时,生成代理不再重用库中的类。 它将此注释添加生成代码中:

        // CODEGEN: Parameter 'message' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'.

可以强制重用吗?

我尝试将 KNowType 属性添加到类中,但没有成功。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)