Mono Class Library: Overview

System.IO.StringWriter: Members

The members of System.IO.StringWriter are listed below.

See Also: Inherited members from System.IO.TextWriter

Public Constructors

Constructs and initializes a new instance of the System.IO.StringWriter class.
Constructs and initializes a new instance of the System.IO.StringWriter class with the specified format provider.
Constructs and initializes a new instance of the System.IO.StringWriter class that writes to the specified System.Text.StringBuilder.
Constructs and initializes a new instance of the System.IO.StringWriter class that writes to the specified System.Text.StringBuilder and has the specified format provider.

Public Properties

[read-only]
override
EncodingSystem.Text.Encoding. Gets the System.Text.Encoding in which the output is written.

Public Methods

override
Close()
Closes the current System.IO.StringWriter instance.
GetStringBuilder() : System.Text.StringBuilder
Returns the underlying System.Text.StringBuilder .
override
ToString() : string
Returns a string containing the characters written to the current System.IO.StringWriter instance so far.
override
Write(char)
Writes a character to the current instance of the System.IO.StringWriter .
override
Write(string)
Writes a string to the current instance of the System.IO.StringWriter.
override
Write(char[], int, int)
Writes the specified region of a character array to this instance of the System.IO.StringWriter.

Protected Methods

override
Dispose(bool)
Releases the unmanaged resources used by the System.IO.StringWriter and optionally releases the managed resources.