Click or drag to resize

StringReader Class

Implements a CrestronIO.TextReader that reads from a string.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CrestronIOTextReader
    Crestron.SimplSharp.CrestronIOStringReader

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

The StringReader type exposes the following members.

Constructors
 NameDescription
Public methodStringReaderInitializes a new instance of the StringReader class
Top
Methods
 NameDescription
Public methodClose Closes the CrestronIO.TextReader and releases any system resources associated with the TextReader.
(Inherited from TextReader)
Public methodDispose Releases all resources used by the CrestronIO.TextReader object.
(Inherited from TextReader)
Protected methodDispose(Boolean) Releases the unmanaged resources used by the System.IO.StringReader and optionally releases the managed resources.
(Overrides TextReaderDispose(Boolean))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Destructor for StringReader.
(Overrides ObjectFinalize)
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 Returns the next available character but does not consume it.
(Overrides TextReaderPeek)
Public methodRead Reads the next character from the input stream and advances the character position by one character.
(Overrides TextReaderRead)
Public methodRead(Char, Int32, Int32) Reads a maximum of count characters from the current stream into buffer, beginning at index.
(Overrides TextReaderRead(Char, Int32, Int32))
Public methodReadBlock Reads a maximum of count characters from the current stream, and writes the data to buffer, beginning at index.
(Overrides TextReaderReadBlock(Char, Int32, Int32))
Public methodReadLine Reads a line of characters from the current stream and returns the data as a string.
(Overrides TextReaderReadLine)
Public methodReadToEnd Reads the stream from the current position to the end of the stream.
(Overrides TextReaderReadToEnd)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also