Defines a method to release allocated resources.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
The primary use of this interface is to release unmanaged resources. The garbage collector automatically releases the memory allocated to a managed object when that object is no longer used. However, it is not possible to predict when garbage collection will occur. Furthermore, the garbage collector has no knowledge of unmanaged resources such as window handles, or open files and streams.
Most Silverlight-based applications consume unmanaged resources only when you access isolated storage with the IsolatedStorageFile class. A good practice is to use the using statement (Using in Visual Basic) with classes that use unmanaged resources, because the using statement calls Dispose for you after your code is finished with the object. For an example of the using statement being used with the IsolatedStorageFile class, see Isolated Storage.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.