System.IO.FileStream.Finalize Method

Ensures that resources are freed and other cleanup operations are performed when the garbage collector reclaims the FileStream.

Syntax

void Finalize ()

Remarks

The garbage collector calls Finalize when the current object is ready to be finalized. Finalize closes the FileStream.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0