CSharpTest.Net
BackgroundWriter Class
Members  Example  See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.IO Namespace : BackgroundWriter Class

Glossary Item Box

Provides a single-threaded writer to a stream

Syntax

Visual Basic (Declaration) 
Public Class BackgroundWriter 
   Inherits CSharpTest.Net.Bases.Disposable
C# 
public class BackgroundWriter : CSharpTest.Net.Bases.Disposable 

Example

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

Inheritance Hierarchy

System.Object
   CSharpTest.Net.Bases.Disposable
      CSharpTest.Net.IO.BackgroundWriter

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys