title: How to generate a List instead of an array in C# with xsd.exe
body: <p>I have an XML schema .xsd file and generate my file with all the C# classes with the <strong>xsd.exe tool</strong>. If I have a sequence of elements within an XML tag, that would be represented in C# with an array. The <strong>fail</strong> is obvious. How can I generate Lists instead of arrays?</p>
  <p>Instead of fixed size arrays in a class, I would like to use Lists.</p>
  <pre><code>Book [] books = new Book[someFixSize];
  
  List&lt;Book&gt; books =  new List&lt;Book&gt;();
  </code></pre>
  <p>I have seen some older (very old) questions about this, but none of them provided a satisfied solution :/</p>
  <p>This is the latest useful hint: <a href="http://www.stefanbader.ch/xsdcsarr2l-exe-refactor-xsd-array-to-list/" rel="nofollow noreferrer">http://www.stefanbader.ch/xsdcsarr2l-exe-refactor-xsd-array-to-list/</a></p>