.NET - the Environment class

Posted on 7:56pm 8/12/2008 by Bruno Silva in .NET, Programming, Windows

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.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© Bruno Silva | Powered by Wordpress