title: C# - Convert a Type Array to a Generic List
body: <p>Code Snippet:</p>
  
  <pre><code>ShippingPeriod[] arrShippingPeriods;
  .
  .
  .
  
  List&lt;ShippingPeriod&gt; shippingPeriods = ShippingPeriodList.ToList&lt;ShippingPeriod&gt;();
  </code></pre>
  
  <p>The Last line won't compile and the error I get is:</p>
  
  <p>"'ShippingPeriod[]' does not contain a definition for 'ToList' and the best extension method overload 'System.Linq.Enumerable.ToList(System.Collections.Generic.IEnumerable)' has some invalid arguments"</p>