Represents a writer that can write a sequential series of characters.
TextWriter Class Members |
|
| Visibility | Name | Type |
|---|---|---|
| public static | Null | TextWriter |
| Visibility | Name | Value Type | Accessibility |
|---|---|---|---|
| public | Encoding | Encoding | [ Get ] |
| public | FormatProvider | IFormatProvider | [ Get ] |
| public | NewLine | String | [ Get , Set ] |
| Visibility | Name | Parameters | Return Type |
|---|---|---|---|
| public | Close | ( ) | Void |
| public | Dispose | ( ) | Void |
| protected | Dispose | ( Boolean disposing ) | Void |
| public | Flush | ( ) | Void |
| public static | Synchronized | ( TextWriter writer ) | TextWriter |
| public | Write | ( String value ) | Void |
| public | Write | ( Object value ) | Void |
| public | Write | ( Double value ) | Void |
| public | Write | ( Decimal value ) | Void |
| public | Write | ( String format , Object arg0 , Object arg1 , Object arg2 ) | Void |
| public | Write | ( String format , Object arg ) | Void |
| public | Write | ( String format , Object arg0 ) | Void |
| public | Write | ( String format , Object arg0 , Object arg1 ) | Void |
| public | Write | ( Single value ) | Void |
| public | Write | ( Char buffer , Int32 index , Int32 count ) | Void |
| public | Write | ( Boolean value ) | Void |
| public | Write | ( Char value ) | Void |
| public | Write | ( Char buffer ) | Void |
| public | Write | ( Int64 value ) | Void |
| public | Write | ( UInt64 value ) | Void |
| public | Write | ( Int32 value ) | Void |
| public | Write | ( UInt32 value ) | Void |
| public | WriteLine | ( Decimal value ) | Void |
| public | WriteLine | ( String value ) | Void |
| public | WriteLine | ( Single value ) | Void |
| public | WriteLine | ( Double value ) | Void |
| public | WriteLine | ( Object value ) | Void |
| public | WriteLine | ( String format , Object arg0 , Object arg1 , Object arg2 ) | Void |
| public | WriteLine | ( String format , Object arg ) | Void |
| public | WriteLine | ( String format , Object arg0 ) | Void |
| public | WriteLine | ( String format , Object arg0 , Object arg1 ) | Void |
| public | WriteLine | ( Char buffer ) | Void |
| public | WriteLine | ( Char buffer , Int32 index , Int32 count ) | Void |
| public | WriteLine | ( ) | Void |
| public | WriteLine | ( Char value ) | Void |
| public | WriteLine | ( Boolean value ) | Void |
| public | WriteLine | ( Int64 value ) | Void |
| public | WriteLine | ( UInt64 value ) | Void |
| public | WriteLine | ( Int32 value ) | Void |
| public | WriteLine | ( UInt32 value ) | Void |
TextWriter is designed for character output, whereas the Stream class is designed for byte input and output and the BinaryWriter class is designed for writing primitive types in binary rather than text. All the Write methods of TextWriter having primitive data types as parameters write out the values as strings.
By default, a TextWriter is not thread safe. See TextWriter.Synchronized for a thread-safe wrapper.
A derived class must minimally implement the Write (Char) method in order to make a useful instance of TextWriter.
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme