First of all, the IDisposable.DisposeGC is not about the same.
GC will clear the memory usage, IDisposable.Disposeused for deterministic free resources such as file descriptors, database connections, network connections, etc.
.
, , GC , . , , .
. .
, , , . , , , , , , , . , , .
GC.SuppressFinalize - , " , , , ".
IDisposable.Dispose, , , . GC , Dispose. , , Dispose, Dispose.
, Dispose . , , - , , , ( ), (, , , .)
"link", , , , , . , FileStream, , , . , , , P/Invoke, .
, , IDisposable.Dispose , Dispose GC.SuppressFinalize, , " , , ."
, Dispose, ( , , ..), .
, :
Dispose ( ). , GC .- , , - .
- GC, .
- , , , (, , ),
:
, , :
- ? (, , , , ?)
- ( , ). , , , . GC , .
, , , , .