In the System namespace there is a class called Environment which gives you access to a lot of information about the environment where your application is running. A nice one that I use is stored in the NewLine property. It gives you the characters sequence that represent a new line (\n and \r together typically, and since I never remember the order, this property is useful :-P)
In the image above you can the complete list of properties and methods available. More information can be found at the MSDN .NET Framework Developer Center.





