Get the amount of physical memory mapped to the process context in CSharp

Description

The following code shows how to get the amount of physical memory mapped to the process context.

Example


//from w ww  .ja v a  2s .  co  m
using System;

class Sample 
{
    public static void Main() 
    {
       Console.WriteLine("WorkingSet: {0}", Environment.WorkingSet);
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    Development »




Console
Encoding
Environment
Random