title: Best way to convert a non-generic collection to generic collection
body: <p>What is the best way to convert a non-generic collection to a generic collection? Is there a way to LINQ it?</p>
  
  <p>I have the following code.</p>
  
  <pre><code>public class NonGenericCollection:CollectionBase
  {
      public void Add(TestClass a)
      {
          List.Add(a);
      }
  }
  
  public class ConvertTest
  {
      public static List&lt;TestClass&gt; ConvertToGenericClass( NonGenericCollection    collection)
      {
          // Ask for help here.
      }
  }
  </code></pre>
  
  <p>Thanks!</p>