Name
TextReader
Synopsis
This class is optimized to read a
stream of sequential characters. The Read()
methods
read data from the front of a stream, and Peek()
looks
at the first character without advancing the position of an
associated stream. If you need a thread-safe TextReader
, use Synchronized()
to
create a thread-safe copy of a TextReader
.
Public MustInherit Class TextReader : Inherits MarshalByRefObject : Implements IDisposable ' Protected Constructors Protected Sub New() ' Public Shared Fields Public Shared ReadOnly Null As TextReader // =System.IO.TextReader+NullTextReader ' Public Shared Methods Public Shared Function Synchronized( ByVal reader As TextReader) As TextReader ' Public Instance Methods Overridable Public Sub Close() Overridable Public Function Peek() As Integer Overridable Public Function Read() As Integer Overridable Public Function Read(ByRef buffer As Char(), ByVal index As Integer, ByVal count As Integer) As Integer Overridable Public Function ReadBlock( ByRef buffer As Char(), ByVal index As Integer, ByVal count As Integer) As Integer Overridable Public Function ReadLine() As String Overridable Public Function ReadToEnd() As String ' Protected Instance Methods Overridable Protected Sub Dispose( ByVal disposing As Boolean) End Class
Hierarchy
System.Object→System.MarshalByRefObject→ TextReader(System.IDisposable)
Subclasses
StreamReader
, StringReader
Returned By
System.Console.In
, System.Xml.XmlTextReader.GetRemainder()
Passed To
System.Console.SetIn() ...
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.