title: Can Extension Methods Be Called From The Immediate Window
body: <p>I ask the question because whenever I attempt to call an extension method from the Immediate window in Visual Studio 2010 I get the following error: </p>
  
  <blockquote>
    <p>System.Collections.Generic.IEnumerable' does not contain a definition for 'ToList' and no extension method 'ToList' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>If the Immediate window doesn't support extension methods, then why is it  that when I type my variable (of type <code>IEnumerable&lt;QueryFilter&gt;</code>) followed by a dot, the IntelliSense lists all the extension methods?</p>
  
  <p>There is nothing wrong with what I am typing in the Command window because if I copy and paste it into my code file and run, it works.</p>
  
  <p>With Visual Studio 2012 doing the same thing for the same solution  works fine. If I switch back to VS2010 and the problem persists.</p>