There are two common ways adding a newline in C#: "\r\n" and "\n". But when we tend to split them, some may be using "\r\n" or just the "\n" so I found this useful variable so that it won't be too confusing and for sure it will be safer.
System.Environment.Newline (or simply type "Environment.Newline" if you already added "using System;" on top)
No comments:
Post a Comment