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(string s);
// 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, int index, int count)
// overrides TextReader
   public override string ReadLine( );    
// overrides TextReader
   public override string ReadToEnd( );   
// overrides TextReader
                  // Protected Instance Methods
   protected override void Dispose(bool disposing);  
// 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.