KH <KH@discussions.microsoft.com> wrote:
The .NET equivelant to vbCrLf is System.Environment.NewLine
So...
string str = "line one" + System.Environment.NewLine + "line two"
Well, that's the equivalent in .NET, but it's not guaranteed to be the
equivalent on all CLI implementations.
vbCrLf is (as the name suggests) carriage return / line feed - "\r\n".
Environment.NewLine is the normal new line sequence *for the
environment of the CLI*. On Linux, for instance, that's probably \n.
Sometimes you should use the normal environment version, other times
(particularly when following standards) you should use precise values
which won't be environmentally dependent.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too