This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
StreamReader Members
Public:
Constructor
Properties
Methods
Close |
Closes the StreamReader and releases any system resources associated with the reader. |
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetEncoding |
Returns the current character encoding that is being used by the current reader. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) |
Gets the Type of the Object. |
Peek |
Returns the next available character without actually reading it from the input stream. |
Read |
Overloaded. Reads the next character or next set of characters from the input stream. |
ReadBlock (inherited from TextReader) |
Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index. |
ReadLine |
Reads a line of characters from the current stream and returns the data as a string. |
ReadToEnd |
Reads the stream from the current position to the end of the stream. |
SwitchEncoding |
Overloaded. Switches the current stream's encoding to the new encoding. |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Fields
Null |
Returns no characters when Read methods are invoked on empty streams. |
Protected:
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
StreamReader Class | System.IO Namespace