Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
            
            
            
Syntax
| Visual Basic (Declaration) |   | 
|---|
Public Overridable Sub Dispose()   | 
 
| C# |   | 
|---|
public virtual void Dispose()  | 
 
            
            
             
            
						
            
            
            
            
Example
Library/Library.Test/TestAssemblyRunner.cs
             | C# |  Copy Code | 
|---|
AssemblyRunner runner = new AssemblyRunner(Exe);
runner.Dispose();
Assert.IsTrue(runner.IsDisposed);  | 
 
| VB.NET |  Copy Code | 
|---|
Dim runner As New AssemblyRunner(Exe)
runner.Dispose()
Assert.IsTrue(runner.IsDisposed)  | 
 
 
            
            
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
 
            
            
See Also