Alex Rivera | Logout

Use razor to generate code?

Asked 2011-02-08T20:38:22.850
13

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?

Edit
Report

1 Answer

9

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.

answered 2011-02-08T21:53:08.523

Your Answer