Message in Chinese (Simplified) (中文(简体))
“<var>X</var>.<var>Y</var>”未用 OptionalFieldAttribute 标记,因此表明必须将其序列化。但是,“<var>X</var>”派生自用 DataContractAttribute 标记且 IsReference 设置为“<var>Z</var>”的类。无法让必需的数据成员属于 IsReference 类。请用 OptionalFieldAttribute 修饰“<var>X</var>.<var>Y</var>”,或禁用适当父类的 IsReference 设置。
Unlocalized message
'<var>X</var>.<var>Y</var>' is not marked with OptionalFieldAttribute, thus indicating that it must be serialized. However, '<var>X</var>' derives from a class marked with DataContractAttribute and an IsReference setting of '<var>Z</var>'. It is not possible to have required data members on IsReference classes. Either decorate '<var>X</var>.<var>Y</var>' with OptionalFieldAttribute, or disable the IsReference setting on the appropriate parent class.
Search by Google