Click or drag to resize

TextReader Class

Represents a reader that can read a sequential series of characters.
Inheritance Hierarchy

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public abstract class TextReader : IDisposable

The TextReader type exposes the following members.

Constructors
 NameDescription
Protected methodTextReader Initializes a new instance of the CrestronIO.TextReader class.
Top
Methods
 NameDescription
Public methodClose Closes the CrestronIO.TextReader and releases any system resources associated with the TextReader.
Public methodDispose Releases all resources used by the CrestronIO.TextReader object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the CrestronIO.TextReader and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodPeek Reads the next character without changing the state of the reader or the character source. Returns the next available character without actually reading it from the input stream.
Public methodRead Reads the next character from the input stream and advances the character position by one character.
Public methodRead(Char, Int32, Int32) Reads a maximum of count characters from the current stream and writes the data to buffer, beginning at index.
Public methodReadBlock Reads a maximum of count characters from the current stream, and writes the data to buffer, beginning at index.
Public methodReadLine Reads a line of characters from the current stream and returns the data as a string.
Public methodReadToEnd Reads all characters from the current position to the end of the TextReader and returns them as one string.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberNull Provides a TextReader with no data to read from.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also