Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Unassigned: fail to compile by specifying the @model [1706]

$
0
0
fail to compile if you specify a Tuple of four or more arguments to @model

OK
```
@model Dictionary<int, Tuple<int, int, int>>
```

NG
```
@model Dictionary<int, Tuple<int, int, int, int>>
```

If you look at the output of the Razor compiler, specify the type argument is broken
```
public class _Page_Views_Home_Index_cshtml : System.Web.Mvc.WebViewPage<Dictionary<int {
```
Comments: This is a known issue, and the alternative is to specify a strong type.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>