I’m working at task that requires a good deal of string manipulation such as:
string result =
String.Format("template text {0}, {1}, ... {150}", arg1, arg2, ... ,arg150);
On account of the large number of arguments, this doesn’t feel elegant and I’m worried about mistakes in argument order.
ASP.NET style templates (i.e. template text <%= arg1 %>, <%= arg2 %>, would be nice, but I don’t want to have to do a web request to a web server just to get at a better templating engine.
Is there a better way to do this?
You could try RazorEngine, based on Razor.