1.

Dispose() vs finalize() methods in C#?

Answer»

The dispose() method is called to free unmanaged resources. An example of these resources is FILES. However, finalize() method called by GARBAGE collector to free unmanaged resources. An example of these resource is files. The dispose() method is called IMPLICITLY, whereas the finalize() method called explicitly.



Discussion

No Comment Found