NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TextReader Methods

The methods of the TextReader class are listed below. For a complete list of TextReader class members, see the TextReader Members topic.

Public:

Close Closes the current instance of TextReader and releases any system resources associated with the TextReader.
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).
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 data from an input stream.
ReadBlock 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 all characters from the current position to the end of the TextReader, and returns them as one string.
Synchronized Creates a synchronized wrapper around the specified TextReader.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected:

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

TextReader Class | System.IO Namespace