In ASP.NET MVC, why can't I inherit from "MyCustomView" without specifying the full type name?
- by Seth Petry-Johnson
In my MVC apps I normally declare a base view type that all of my views inherit from. I get a parser error when I specify Inherits="MyView" in my Page declaration, but not if I specify Inherits="MyApp.Web.Views.MyView".
Strangely enough, it also works fine if I specify Inherits="MyView<T> (where T is any valid type).
Why can I specify a…