DataMember 特性

[DataMember(EmitDefaultValue=false)]

当属性值为默认值时,不会参与序列化。

原文地址:https://www.cnblogs.com/yfann/p/2353174.html