GC.GetTotalMemory
using System; class MainClass { static void Main() { MainClass myGCCol = new MainClass(); Console.WriteLine("Total Memory: {0}", GC.GetTotalMemory(false)); } }