共用方式為


Game.Finalize Method

Allows a Game to attempt to free resources and perform other cleanup operations before garbage collection reclaims the Game.

Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Game (in microsoft.xna.framework.game.dll)

Syntax

protected override void Finalize ()

Remarks

This method overrides System.Object.Finalize. Application code should not call this method; an object's Finalize method is automatically invoked during garbage collection.

See Also

Reference

Game Class
Game Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP