Is there a decent way to declare a long single line string in C#, such that it isn\'t impossible to declare and/or view the string in an editor?
The options I\'m aware o
If you really want this long string in the code, and you really don't want to type the end-quote-plus-begin-quote, then you can try something like this.
string longString = @"Some long string,
with multiple whitespace characters
(including newlines and carriage returns)
converted to a single space
by a regular expression replace.";
longString = Regex.Replace(longString, @"\s+", " ");