title: Programatically getting the model types for a bunch of views
body: <p>I'm looking to get the interfaces required for a bunch of views we have scattered across a number of projects. Is there a good way to retrieve the model/interface required for a given razor template/view? They all begin with something like:</p>
  
  <pre><code>@inherits Our.Custom.TypeOfView&lt;IModel&gt;
  </code></pre>
  
  <p>Where <code>TypeOfView</code> is a class that inherits from <code>System.Web.Mvc.WebViewPage</code>.</p>
  
  <p>I could potentially do some string searching through all the files, but it feels like there is probably a better way to directly get the information I'm interested in. Maybe there isn't? I don't know, that's why I'm asking this question.</p>