Click or drag to resize
StreamReader Class
Represents a reader that can read a sequential series of characters.
Inheritance Hierarchy

Namespace: CMS.IO
Assembly: CMS.IO (in CMS.IO.dll) Version: 8.2.23
Syntax
C#
public class StreamReader : TextReader

The StreamReader type exposes the following members.

Constructors
  NameDescription
Protected methodStreamReader
Creates new instance of stream reader.
Top
Methods
  NameDescription
Public methodClose
Closes the StreamReader object and the underlying stream, and releases any system resources associated with the reader.
(Overrides TextReaderClose.)
Protected methodDispose
Releases all resources.
(Overrides TextReaderDispose(Boolean).)
Public methodStatic memberNew(Stream)
Returns new instance of stream reader class.
Public methodStatic memberNew(StreamReader)
Returns new instance of stream reader class.
Public methodStatic memberNew(String)
Returns new instance of stream reader class.
Public methodStatic memberNew(Stream)
Returns new instance of stream reader class.
Public methodStatic memberNew(Stream, Encoding)
Returns new instance of stream reader class.
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 methodReadLine
Reads a line from the underlying string.
(Overrides TextReaderReadLine.)
Public methodReadToEnd
Reads the stream from the current position to the end of the stream.
(Overrides TextReaderReadToEnd.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Properties
  NameDescription
Public propertyEndOfStream
Gets a value that indicates whether the current stream position is at the end of the stream.
Top
See Also