using System;
class Bar
{
~Bar() { Console.WriteLine("Finalized!"); }
}
class Program
{
static void Main(string[] args)
{
Bar bar = new Bar();
GC.Collect();
GC.WaitForPendingFinalizers();
Console.WriteLine("Press any key to exit...");
Console.ReadLine();
}
}
dXNpbmcgU3lzdGVtOwoKY2xhc3MgQmFyCnsKICAgIH5CYXIoKSB7IENvbnNvbGUuV3JpdGVMaW5lKCJGaW5hbGl6ZWQhIik7IH0KfQoKY2xhc3MgUHJvZ3JhbQp7CiAgICBzdGF0aWMgdm9pZCBNYWluKHN0cmluZ1tdIGFyZ3MpCiAgICB7CiAgICAgICAgQmFyIGJhciA9IG5ldyBCYXIoKTsKICAgICAgICBHQy5Db2xsZWN0KCk7CiAgICAgICAgR0MuV2FpdEZvclBlbmRpbmdGaW5hbGl6ZXJzKCk7CiAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIlByZXNzIGFueSBrZXkgdG8gZXhpdC4uLiIpOwogICAgICAgIENvbnNvbGUuUmVhZExpbmUoKTsKICAgIH0KfQ==