Mega Code Archive
Categories
/
C# Book
/
01 Language Basics
0131 Finalizer
Finalizer is execuated before garbage collector collects the unreferenced objects. The finalizer has the same name with the type. The finalizer is prefixed ~. class Rectangle{ ~Rectangle(){ } }