Visual Basic (Declaration) | |
---|---|
Public Class BackgroundWriter Inherits CSharpTest.Net.Bases.Disposable |
C# | |
---|---|
public class BackgroundWriter : CSharpTest.Net.Bases.Disposable |
Library/Library.Test/TestBackgroundWriter.cs
C# | Copy Code |
---|---|
using (TestStream io = new TestStream()) using (BackgroundWriter wtr = new BackgroundWriter(io, false)) { wtr.Dispose(); Assert.IsFalse(io.Disposed); io.Write(new byte[1], 0, 1); } |
VB.NET | Copy Code |
---|---|
Using io As New TestStream() Using wtr As New BackgroundWriter(io, False) wtr.Dispose() Assert.IsFalse(io.Disposed) io.Write(New Byte(1) {}, 0, 1) End Using End Using |
System.Object
CSharpTest.Net.Bases.Disposable
CSharpTest.Net.IO.BackgroundWriter
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
BackgroundWriter MembersCSharpTest.Net.IO Namespace