title: How to initialize List, that is in struct
body: <p>Here I declare struct outside main</p>
  
  <pre><code>    struct webDataStructure
      {
          public string title;
          public string mainLink;
          public string numberOfPages;
          public List&lt;string&gt; secondaryLinks;
      }
  </code></pre>
  
  <p>Inside main I initialize structure</p>
  
  <pre><code>webDataStructure[] webData = new webDataStructure[400];
  </code></pre>
  
  <p>And I initialize it inside main in for loop</p>
  
  <pre><code>webData[i].secondaryLinks = new List&lt;string&gt;(35);
  </code></pre>
  
  <p>The problem is that Count of List is still 0, should be 35</p>