MVC 4 razor model with multiple angle brackets issue

I am experiencing some issues with asp.net mvc 4 I want to use

@model System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>>

as a model for my view.

For some reason i am getting an error An opening "<" is missing the corresponding closing ">" .

I can create separate model which would contains my dictionary as a work around.

But i am just wondering is it a bug?

I was playing with that but cant make it work anyway then just for test i copy my model declaration to the View in MVC 3 project and it is looking good there, so it is something wrong with MVC 4.


I had the same issue and the solution was to re-install the latest ASP.Net MVC 4 framework. I also re-installed ASP.NET Web Pages with Razor Syntax.

链接地址: http://www.djcxy.com/p/10252.html

上一篇: 在C#中使用F#选项类型

下一篇: MVC 4剃刀模型与多尖括号的问题