Visual Studio XSD Tool: Generate Collections Rather Than Arrays
- by senfo
I generated some C# classes from an XSD using the Visual Studio XSD utility and it generated arrays for storing a collection of elements, rather than one of the built-in generic Collection<T> (or related) classes.
None of the command line parameters mentioned in xsd /? mention anything about generating collections rather than arrays, but I know that this can be done with web service proxy classes that Visual Studio generates, so I figured it must be possible.
Does anybody know how to have the XSD utility generate collection classes rather than arrays?