There is 3 types of methods which is used to remove the unreachable object from memory . And these methods are: Dispose() Finalize() and Gc.collect()
Dispose() Finalize() and Gc.collect()