Luca Romagnoli Luca Romagnoli - 4 months ago 54
C# Question

equivalent of vbCrLf in c#

I have a to do this:

AccountList.Split(vbCrLf)


In c# AccountList is a string.
How can i do?

thanks

Answer

You are looking for System.Environment.NewLine.

On Windows, this is equivalent to \r\n though it could be different under another .NET implementation, such as Mono on Linux, for example.