Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Xsd2Code 为我的 XSD 文件生成 C# 序列化器/反序列化器类。我还启用了自动属性的生成。
问题 #1:除了自动属性之外,Xsd2Code 仍然生成私有字段。这不应该是必要的。
问题 #2:只有私有字段被初始化。自动属性未初始化并保持为空。