Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm trying to accomplish this, but since @ is used in Razor, I can't seem to use it as a type.
C#
@model IEnumerable<@event>

I've tried:
C#
@model IEnumerable<@@event>

and
C#
@using ev = Namespace.To.@event
@model IEnumerable<ev>

without success.
Posted
Updated 25-Jun-15 11:03am
v2

1 solution

It appears to just work; however IntelliSense does not work; and breakpoints cannot be set.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900