Visual Studio XSD Tool: Generate Collections Rather Than Arrays

Posted by senfo on Stack Overflow See other posts from Stack Overflow or by senfo
Published on 2009-03-08T15:46:34Z Indexed on 2010/03/31 12:03 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about xsd

Related posts about Xml