class StringWriter
Implements a for writing information to a string. The information is stored in an underlying .
public StringWriter( IFormatProvider formatProvider )
Initializes a new instance of the class with the specified format control.
formatProviderAn object that controls formatting.
public StringWriter( StringBuilder sb )
Initializes a new instance of the class that writes to the specified .
sbThe object to write to.
public StringWriter( StringBuilder sb, IFormatProvider formatProvider )
Initializes a new instance of the class that writes to the specified and has the specified format provider.
sbThe object to write to.formatProviderAn object that controls formatting.
public Encoding Encoding { get; }
Gets the in which the output is written.
- Returns The in which the output is written.
public void Write( char value )
Writes a character to the string.
valueThe character to write.
public void Write( char[] buffer, int index, int count )
Writes a subarray of characters to the string.
bufferThe character array to write data from.indexThe position in the buffer at which to start reading data.countThe maximum number of characters to write.
public void Write( string value )
Writes a string to the current string.
valueThe string to write.
public Task WriteAsync( char value )
Writes a character to the string asynchronously.
valueThe character to write to the string.- Returns A task that represents the asynchronous write operation.
public Task WriteAsync( char[] buffer, int index, int count )
Writes a subarray of characters to the string asynchronously.
bufferThe character array to write data from.indexThe position in the buffer at which to start reading data.countThe maximum number of characters to write.- Returns A task that represents the asynchronous write operation.
public Task WriteAsync( string value )
Writes a string to the current string asynchronously.
valueThe string to write. If is , nothing is written to the text stream.- Returns A task that represents the asynchronous write operation.
public Task WriteLineAsync( char value )
Asynchronously writes a character to the string, followed by a line terminator.
valueThe character to write to the string.- Returns A task that represents the asynchronous write operation.
public Task WriteLineAsync( char[] buffer, int index, int count )
asynchronously writes a subarray of characters to the string, followed by a line terminator.
bufferThe character array to write data from.indexThe position in the buffer at which to start reading data.countThe maximum number of characters to write.- Returns A task that represents the asynchronous write operation.
public Task WriteLineAsync( string value )
Asynchronously writes a string to the current string, followed by a line terminator.
valueThe string to write. If the value is , only a line terminator is written.- Returns A task that represents the asynchronous write operation.
public void WriteLine( string format, object arg0 )
😔 No documentation found.
public void WriteLine( string value )
😔 No documentation found.
public void WriteLine( decimal value )
😔 No documentation found.
public void WriteLine( double value )
😔 No documentation found.
public void WriteLine( float value )
😔 No documentation found.
public void WriteLine( ulong value )
😔 No documentation found.
public void WriteLine( long value )
😔 No documentation found.
public void WriteLine( uint value )
😔 No documentation found.
public void WriteLine( int value )
😔 No documentation found.
public void WriteLine( object value )
😔 No documentation found.
public void WriteLine( char[] buffer )
😔 No documentation found.
public void WriteLine( bool value )
😔 No documentation found.
public void WriteLine( char[] buffer, int index, int count )
😔 No documentation found.
public void WriteLine( )
😔 No documentation found.
public void WriteLine( string format, object arg0, object arg1, object arg2 )
😔 No documentation found.
public void WriteLine( string format, object[] arg )
😔 No documentation found.
public void WriteLine( string format, ReadOnlySpan<object> arg )
😔 No documentation found.
public Task WriteAsync( char[] buffer )
😔 No documentation found.
public void WriteLine( char value )
😔 No documentation found.
public Task WriteLineAsync( )
😔 No documentation found.
public Task FlushAsync( CancellationToken cancellationToken )
😔 No documentation found.
public object GetLifetimeService( )
😔 No documentation found.
public object InitializeLifetimeService( )
😔 No documentation found.
public Type GetType( )
😔 No documentation found.
public bool Equals( object obj )
😔 No documentation found.
public int GetHashCode( )
😔 No documentation found.
public StringWriter( )
😔 No documentation found.
public void WriteLine( string format, object arg0, object arg1 )
😔 No documentation found.
public Task WriteLineAsync( char[] buffer )
😔 No documentation found.
public void Write( object value )
😔 No documentation found.
public void Close( )
😔 No documentation found.
public StringBuilder GetStringBuilder( )
😔 No documentation found.
public void Write( ReadOnlySpan<char> buffer )
😔 No documentation found.
public void Write( StringBuilder value )
😔 No documentation found.
public void WriteLine( ReadOnlySpan<char> buffer )
😔 No documentation found.
public void WriteLine( StringBuilder value )
😔 No documentation found.
public Task WriteAsync( ReadOnlyMemory<char> buffer, CancellationToken cancellationToken = null )
😔 No documentation found.
public Task WriteAsync( StringBuilder value, CancellationToken cancellationToken = null )
😔 No documentation found.
public Task WriteLineAsync( StringBuilder value, CancellationToken cancellationToken = null )
😔 No documentation found.
public Task WriteLineAsync( ReadOnlyMemory<char> buffer, CancellationToken cancellationToken = null )
😔 No documentation found.
public Task FlushAsync( )
😔 No documentation found.
public string ToString( )
😔 No documentation found.
public IFormatProvider FormatProvider { get; }
😔 No documentation found.
public void Dispose( )
😔 No documentation found.
public void Write( string format, ReadOnlySpan<object> arg )
😔 No documentation found.
public ValueTask DisposeAsync( )
😔 No documentation found.
public string NewLine { get; set; }
😔 No documentation found.
public void Write( char[] buffer )
😔 No documentation found.
public void Write( bool value )
😔 No documentation found.
public void Write( int value )
😔 No documentation found.
public void Write( uint value )
😔 No documentation found.
public void Write( long value )
😔 No documentation found.
public void Write( ulong value )
😔 No documentation found.
public void Write( float value )
😔 No documentation found.
public void Write( double value )
😔 No documentation found.
public void Write( decimal value )
😔 No documentation found.
public void Write( string format, object arg0 )
😔 No documentation found.
public void Write( string format, object arg0, object arg1 )
😔 No documentation found.
public void Write( string format, object arg0, object arg1, object arg2 )
😔 No documentation found.
public void Flush( )
😔 No documentation found.
public void Write( string format, object[] arg )
😔 No documentation found.