Neyah <Ne***@discussions.microsoft.com> wrote:
You could also use Environment.NewLine instead of \r\n. This is "safer" in
the longrun since Unix/Linux uses \n and Macintosh uses \r, your code will
run correctly on that type of box in the event of your application running
under something like Mono.
Well, that really depends on what Mono chooses to do with TextBoxes.
There'll be a lot of code which uses Environment.NewLine, and a lot of
code which uses \r\n. Whatever they choose to do, they'll break a lot
of code.
Environment.NewLine is just the default new line string for text files
on that system IMO (and it's not very clearly documented, so it really
is just my opinion) - it needn't dictate what a UI chooses to use.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too