C# – First steps with C# and .NET – part 051.

In this tutorial, I will show you how to add a reference to the console project and how can be used.
First, create a new folder named FreeRam and start a new console project with these commands:

In this project, I will use the System.Management.
I used this command to add this reference to the project:

The System. Management let you create an object and this is used to take the information you need.
The source code is simple to understand, you can see it below.

Finally, use the run command to get all information about the memory system:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.