Chris Lyon's WebLog

Or How I Learned To Stop Worrying And Love The GC

August, 2006

  • Chris Lyon's WebLog

    When GC.KeepAlive Doesn’t

    The purpose of GC.KeepAlive(Object) is to tell the GC not to collect an object until a certain point. For example: class MyObject { ~MyObject() { Console.WriteLine(“MyObject Finalized”); } public static void Main() { MyObject obj = new MyObject...
Page 1 of 1 (1 items)