Destructor « Class Interface « C# / C Sharp






1.Finalizable Disposable Class
2.force the GC to invoke Finalize() for finalizable objects created in this AppDomain.
3.the destructors are called bottom-up, which confirms the sequencing of destructors.
4.Shows that stack unwinding in C# does not necessarily call destructorsShows that stack unwinding in C# does not necessarily call destructors
5.Illustrates a destructorIllustrates a destructor
6.Demonstrate a destructorDemonstrate a destructor