Gets the maximum number of generations that the system currently supports.
using System; class MainClass { static void Main() { MainClass myGCCol = new MainClass(); Console.WriteLine("The highest generation is {0}", GC.MaxGeneration); } }