mganss / XmlSchemaClassGenerator

Generate C# classes from XML Schema files
Apache License 2.0
588 stars 179 forks source link

Incorrect property type in generated class #80

Closed andrewkip closed 6 years ago

andrewkip commented 6 years ago

Hello, in generated classes mdlp.zip by the schemas in attached files (XmlSchemaClassGenerator.Console.exe documents.xsd -p=mdlp) XSD.ZIP for class Register_End_Packing wrong type for property Signs is:

System.Collections.ObjectModel.Collection, but should not it be Register_End_PackingSigns?

mganss commented 6 years ago

This is an "optimization" because the inner complex type contains just a collection of strings. The extra unused class is output anyway, though (see #32).

andrewkip commented 6 years ago

Ok I see.

I've checked data serialized/deserialized ok.

Thank you.