O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 method StringReader(string s);  
// Public Instance Methods
   public override method void Close();             // overrides TextReader
   public override method int Peek();               // overrides TextReader
   public override method int Read();               // overrides TextReader
   public override method int Read(in char[] buffer,             // overrides TextReader
        int index, int count);  
   public override method string ReadLine();        // overrides TextReader
   public override method string ReadToEnd();       // overrides TextReader
                  // Protected Instance Methods
   protected override method void Dispose(bool disposing);      // overrides TextReader
}

Hierarchy

System.ObjectSystem.MarshalByRefObjectTextReader(System.IDisposable)StringReader

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required