I am new in C#. I am trying to migrate a Java project in C#. the Java Runtime Class has been used for some memory calculation in the Java project. Is there any equivalent of the Runtime class in C# that can give me the same results?
I want to use the following sample code and metohds
Runtime rt = Runtime.getRuntime(); long total = rt.totalMemory(); long available = rt.freeMemory();