C# like c/java/javascript has the time honored literal values
\n = new line (
\r = carriage return
\t = tab
see docs for more
you can make you own class with string props for the names if you want, but
then string constants would be as hard to read as the vb ones:
string s = StringValues.TAB + "this is line 1 " + StringValues.NewLine
+ StringValues.TAB + "this is line 1 " + StringValues.NewLine;
instead of:
string s = "\tthis is line1\r\n\tthis is line 2\r\n";
-- bruce (sqlwork.com)
"Jim Heavey" <Ji*******@discussions.microsoft.com> wrote in message
news:B6**********************************@microsof t.com...
In C# is there some sort of Enumerator which has "friendly" names for
things like line feed, tabs, carriage control, etc.? I would perfer to use
then using ascii values as I think this is more self documenting...