Jan 11, 2011 at 11:24 PM
Edited Jan 11, 2011 at 11:37 PM
Actually the @model declaration and @inherits is parsed by the Razor Engine in MVC. Not the base parser itself. The only reason I want to add it is just for Intellisense support when editing views.
My version of the parser just skips over it unlike the real MVC parser and it's *only* used for .cshtml in design mode files.
I don't know...I think it's still the simplistic engine, I don't see why we can't add features for editing support. I don't know...It's just annoying to edit razor files without Intellisense. :)
Edit: We could also possibly add support for model checking to make sure you're passing in the right model type if you use @model...i don't know...too many thoughts! :)