Automatically implemented properties of xsd.exe

Is it possible to get xsd.exe to generate automatically implemented properties instead of the ugly manually implemented code that xsd.exe generates?

public abstract partial class SomeClass { private string valueField; /// <remarks/> [System.Xml.Serialization.XmlTextAttribute()] public string Value { get { return this.valueField; } set { this.valueField = value; } } } 
+7
c # properties xsd
source share
1 answer

The XML Schema Definition Tool (Xsd.exe) does not seem to support the creation of automatically implemented properties.

But there is an alternative: the community version of Xsd2Code . From the list of functions:

Maintain automatic properties if no special set or set is required.

Associated answer: XSDObjectGen.exe vs XSD.exe .

+9
source share

All Articles