static void Main(string[] args) { SomeGlobalClass SGC = new SomeGlobalClass(); BigData d = new BigData(); BigData d2 = new BigData(); d.FreeResources(); d2.FreeResources(); d = null; d2 = null; GC.Collect(); Console.ReadLine(); /*while (true) * { * * }*/ }
public SomeGlobalClass() { Instance = this; }