CSharpTest.Net
Dispose Method
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Processes Namespace > AssemblyRunner Class : Dispose Method

Glossary Item Box

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.NETCopy 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

Generated with Document! X 2011 by Innovasys