Is there any way to get automatic properties in my class file that's generated from xsd? I am using Xsd2code and have tried the following command.
c:\xsd2code q2test.xsd /n ContractXml /pl Net35 /ap[+] /xa[+]
It doesn't generate automatic properties. It generates something like this:
public string AssetHdrId {
get {
return this.assetHdrIdField;
}
set {
this.assetHdrIdField = value;
}
}
private string assetHdrIdField;
I want something simple like public string AssetHdrId{get;set;}
I have around 355 properties in my class and I wanted to ask around before changing each one of them manually.