@foreach (string s in \"1,2,3\".Split(\',\')) { s is equal to @s }
I want to spit out: s is equal to 1 s is equal to 2 s is equal to 3
Just saw this on ScottGu's blog this morning: use @: before that line:
@:
@foreach (string s in "1,2,3".Split(',')) { @: s is equal to @s }
Alternately, use the tag:
@foreach (string s in "1,2,3".Split(',')) { s is equal to @s }