Before I invest a lot of time researching Razor and its applicability, I would like to ask you Razor gurus if one could use Razor to generate C# code? Any issues that you can think of right away?
You certainly could use Razor to generate C# code, but it's not really designed for non-XML-like languages. You'd have to have a lot of <text> tags.