For reasons I won’t go into I need to use CLR generics syntax in an ASP.NET MVC view.
I.E. NOT this:
System.Web.Mvc.ViewUserControl<someobject>
but this:
System.Web.Mvc.ViewUserControl`1[[someobject]]
When I run the application I get
Parser Error: could not load type `System.Web.Mvc.ViewUserControl`1[[someobject]]`
🙁
How can I get this to work?
Turns out anything inside the CLR generics syntax needs to be the fully qualified type name.
I.E it needs the assembly on it: