title: Not able to access .ToList() method on Table
body: <p>I am trying to use SilverlightPhoneDatabase to use a sqlite db for my Windows Phone 7 application. </p>
  
  <p>The dll has a class Database</p>
  
  <pre><code>    public class Database
      {
      .
      .
      .
      public Table&lt;T&gt; Table&lt;T&gt;();
      .
      .
      }
  </code></pre>
  
  <p>Definition of class Table is as follows:</p>
  
  <pre><code>public class Table&lt;T&gt; : ObservableCollection&lt;T&gt;, ITable
  </code></pre>
  
  <p>Then in my App.xaml
  I have a method        </p>
  
  <pre><code> public static Database MyDB
   {
  get
  {
  // Delay creation of the view model until necessary
  if (database == null)
  OpenDatabase&lt;MyObj&gt;("MyObj");
  return database;
  }
  }
  </code></pre>
  
  <p>Now from my xaml.cs file I am able to access the .ToList() method on the Table.
  ie If I say </p>
  
  <p><code>App.MyDB.Table&lt;MyObj&gt;().ToList();</code> </p>
  
  <p>from my main.xaml.cs, I can access the ToList() method (Table class inherited from ObservableCollection..)</p>
  
  <p>But I created a new class in a new cs in the same namespace.. and if I try to access the ToList() method on the Table class, I am getting compiler error that Table&lt;> does not contain definition for 'ToList'</p>
  
  <p>I am just curious why is it not working? It may be something silly I am missing.</p>