Finalize Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

protected override void Finalize()

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

Show: