Development C# Tutorial

using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Security.Cryptography;
public class MainClass
{
    public static void Main()
    {
        Console.WriteLine("TotalMemory: {0}", GC.GetTotalMemory(false));
        Console.WriteLine("(forcing a GC...)");
        GC.Collect();
        Console.WriteLine("TotalMemory: {0}", GC.GetTotalMemory(false));
    }
}
TotalMemory: 141036
(forcing a GC...)
TotalMemory: 153444