Name
StringReader
Synopsis
This class implements TextReader
and
provides all its methods. It is useful
when you would like to deal with a System.String
in the same way you would work with a TextReader
.
public class StringReader : TextReader { // Public Constructors public StringReader(strings
); // Public Instance Methods public override void Close( ); // overrides TextReader public override int Peek( ); // overrides TextReader public override int Read( ); // overrides TextReader public override int Read(in char[ ]buffer
, intindex
, intcount
) // overrides TextReader public override string ReadLine( ); // overrides TextReader public override string ReadToEnd( ); // overrides TextReader // Protected Instance Methods protected override void Dispose(booldisposing
); // overrides TextReader }
Hierarchy
System.Object
→
System.MarshalByRefObject
→
TextReader(System.IDisposable)
→
StringReader
Get C# in a Nutshell, Second Edition 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.