public Sally Sally { get; set; }
Console.WriteLine("Bob is dying");
Console.WriteLine("Bob is dying");
public static void Main()
Console.WriteLine("Start of Main");
Console.WriteLine("End of Main");
private static void OtherMethod()
Console.WriteLine("Start of OtherMethod");
var bob = new Bob { Sally = new Sally() };
Console.WriteLine("Before GC");
Console.WriteLine("Before WFPF");
GC.WaitForPendingFinalizers();
Console.WriteLine("After WFPF");