Like other unhandled exceptions, an exception that is thrown from a finalizer and not handled will cause your application to terminate.
1 2 3 4 5 6 | ~Dog(){ Console.WriteLine( "Dog finalizer is running. I'll throw an exception and your app will terminate"); throw new Exception("Dang it");} |
1 2 3 4 5 | Dog d = new Dog("Kirby", 15);d.Bark();d = null;GC.Collect(); |

