Why does garbage collection not remove the need for IDisposable?
Garbage collection reclaims managed memory that is no longer reachable, on a schedule determined by the runtime. IDisposable provides deterministic cleanup for resources such as file handles, database...