An Interesting Aside: Some Additional Members of
the System.Environment Class
The Environment type exposes a number of extremely helpful methods beyond
GetCommandLineArgs(). Specifically, this class allows you to obtain a number of details regarding
the operating system currently hosting your .NET application using various static members. To
illustrate the usefulness of System.Environment, update your Main() method to call a helper method
named ShowEnvironmentDetails():
static int Main(string[] args)
{
...
Do'stlaringiz bilan baham: |