ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT

C# Environment Class Programs

In C# programming language, the Environment class is defined in the System Namespace, it provides the information about, and means to manipulate, the current environment and platform. It is used for getting & setting various operating system-related information.

This section contains the solved C# Environment class programs. Practice these programs to learn the concept of environment-related functionalities, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the C# Environment class programs.

List of C# Environment Class Programs

  1. C# program to get the full path of the current directory using Environment class
  2. C# program to get the Machine Name or Host Name using Environment class
  3. C# program to check whether running Operating System is 64-bit OS or not using Environment class
  4. C# program to check whether running process is 64-bit process or not using Environment class
  5. C# program to get the number of processors of the current machine using Environment class
  6. C# program to check whether the CLR is shutting down or not using Environment class
  7. C# program to get the path of system directory using Environment class
  8. C# program to get the memory size for OS page file using Environment class
  9. C# program to get the Computer System User Name using Environment class
  10. C# program to get the amount of physical memory mapped to the process context using Environment class
  11. C# program to get the Network Domain name associated with current using Environment class
  12. C# program to get the current stack trace information using Environment class
  13. C# program to get the number of milliseconds elapsed since system started using Environment class
  14. C# program to check whether a process is running in user interactive mode or not using Environment class
  15. C# program to get and print the command line arguments using Environment class
  16. C# program to demonstrate the use of Exit() method of Environment class
  17. C# program to demonstrate the use of GetCommandLineArgs() method of Environment class
  18. C# program to demonstrate the use of FailFast() method of Environment class
  19. C# program to get the logical drives of computer system using Environment class
  20. C# program to get the environment variables using Environment class
  21. C# program to get the Operating System version of computer using Environment class
  22. C# program to demonstrate the use of GetEnvironmentVariable() method of Environment class
  23. C# program to demonstrate the use of SetEnvironmentVariable() method of Environment class
ADVERTISEMENT



ADVERTISEMENT



Comments and Discussions

ADVERTISEMENT

ADVERTISEMENT

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.