title: Razor WebViewPage extension methods not working
body: <p>I'm trying to create extension methods for WebViewPage class to be able to call @Foo() in my .cshtml files.
  And I'm almost sure that the following code should work but it doesn't...</p>
  
  <p>I'm using System.Web.Mvc so I don't think it's a namespace problem either.</p>
  
  <pre><code>namespace System.Web.Mvc
  {
  
      public static class WebViewPageExtensions
      { 
  
          public static void Foo(this System.Web.Mvc.WebViewPage view)
          {
              //do something...
          }
  
      }
  }
  </code></pre>
  
  <p>Note: I also tried to do this with a custom WebViewPage class, which worked, but I want to understand why I can't use extension methods.</p>
  
  <p>Thanks</p>