凡是被DataMember声明修饰的属性,必须要有get和set访问器,靠靠靠!!!! 给接口加 XmlSerializerFormat 强制用xml序列化。 转载于:https://www.cnblogs.com/fej121/p/3446761.html