How about this:
var result = string.Join(Environment.NewLine, new string[]{ "one", "two" });
This is a little painful and possibly overkill, but it makes it possible to keep the line separation in your code. To improve the situation a bit, you can use a helper method:
static string MultiLine(params string[] args) { return string.Join(Environment.NewLine, args); } static void Main(string[] args) { var result = MultiLine( "one", "two" ); }
Paolo tedesco
source share