StringWriter

StringWriter


Provides a set of functions for writing to a string.


Implements:

IObject 
TextWriter 

Public:

Properties:

NameDescription
 Encoding (get) Returns the encoding in which the output is written.  
 FormatProvider (get) Returns the format provider the writer uses for formatting values.  
 NewLine (get) Returns the string currently used to represent a new-line set of characters.  
 NewLine (let) Sets the string to be used as the new-line set of characters.  

Methods:

NameDescription
 CloseWriter Closes the writer  
 Equals Returns a boolean indicating if the value and this object instance are the same instance.  
 Flush Writes any buffered data to the underlying string.  
 GetHashCode Returns a pseudo-unique number identifying this instance.  
 GetStringBuilder Returns the underlying stringbuilder being used to write to the string.  
 ToString Returns a string representation of this object instance.  
 WriteChars Writes the string representation of the characters to the stream using both the format provider and encoding objects.  
 WriteLine Writes a text representation of the value followed by a NewLine to the underlying stream using both the format provider and encoding objects.  
 WriteLineChars Writes the string representation of the characters followed by a NewLine to the stream using both the format provider and encoding objects.  
 WriteValue Writes a text representation of the value to the underlying stream using both the format provider and encoding objects.  

See Also

Project CorLib Overview

Class StringWriter Overview

Constructors

TextWriter