title: Resizing List<T>
body: <p>I want to resize my <code>List&lt;T&gt;</code>. ie. change the count of the List with respect to some conditions. Right now, Iam doing it using an Array like so :-</p>
  
  <pre><code>private MyModel[] viewPages = GetPagesFromAPI().ToArray();
  
  if (viewPages.Count % 6 == 0) 
  {
     Array.Resize(ref newViewPages, viewPages.Length / 6);
  } 
  else
  {
     Array.Resize(ref newViewPages, viewPages.Length / 6 + 1);
  }
  </code></pre>
  
  <p>But, I believe this is not a proper way to do it, since this would be heavy on my application and may cause memory issues. Is there a way I can do it using something like<code>List&lt;MyModel&gt; viewPageList</code>?</p>
  
  <p>Any help is appreciated.</p>