IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnitLite.DebugWriter Class Reference

DebugWriter is a TextWriter that sends it's output to Debug. We don't use Trace because writing to it is not supported in CF. More...

+ Inheritance diagram for NUnitLite.DebugWriter:
+ Collaboration diagram for NUnitLite.DebugWriter:

Public Member Functions

override void Write (char value)
 Writes a character to the text stream. More...
 
override void Write (string value)
 Writes a string to the text stream. More...
 
override void WriteLine (string value)
 Writes a string followed by a line terminator to the text stream. More...
 

Properties

static TextWriter Out [get]
 Singleon instance of a DebugWriter. More...
 
override System.Text.Encoding Encoding [get]
 When overridden in a derived class, returns the T:System.Text.Encoding in which the output is written. More...
 

Static Private Attributes

static TextWriter writer
 

Detailed Description

DebugWriter is a TextWriter that sends it's output to Debug. We don't use Trace because writing to it is not supported in CF.

Member Function Documentation

override void NUnitLite.DebugWriter.Write ( char  value)
inline

Writes a character to the text stream.

Parameters
valueThe character to write to the text stream.
Exceptions
T:System.ObjectDisposedExceptionThe T:System.IO.TextWriter is closed.
T:System.IO.IOExceptionAn I/O error occurs.
override void NUnitLite.DebugWriter.Write ( string  value)
inline

Writes a string to the text stream.

Parameters
valueThe string to write.
Exceptions
T:System.ObjectDisposedExceptionThe T:System.IO.TextWriter is closed.
T:System.IO.IOExceptionAn I/O error occurs.
override void NUnitLite.DebugWriter.WriteLine ( string  value)
inline

Writes a string followed by a line terminator to the text stream.

Parameters
valueThe string to write. If value is null, only the line termination characters are written.
Exceptions
T:System.ObjectDisposedExceptionThe T:System.IO.TextWriter is closed.
T:System.IO.IOExceptionAn I/O error occurs.

Member Data Documentation

TextWriter NUnitLite.DebugWriter.writer
staticprivate

Property Documentation

TextWriter NUnitLite.DebugWriter.Out
staticget

Singleon instance of a DebugWriter.

The DebugWriter singleton.

override System.Text.Encoding NUnitLite.DebugWriter.Encoding
get

When overridden in a derived class, returns the T:System.Text.Encoding in which the output is written.

Returns
The Encoding in which the output is written.

The documentation for this class was generated from the following file: