TextSnapshotToTextReader 类

定义

提供 TextReader 文本快照的外观。

public ref class TextSnapshotToTextReader sealed : System::IO::TextReader
public sealed class TextSnapshotToTextReader : System.IO.TextReader
type TextSnapshotToTextReader = class
    inherit TextReader
Public NotInheritable Class TextSnapshotToTextReader
Inherits TextReader
继承
TextSnapshotToTextReader

构造函数

TextSnapshotToTextReader(ITextSnapshot)

TextSnapshotToTextReader使用指定的文本快照初始化的新实例。

方法

Close()

关闭读取器并释放任何关联的系统资源。

Peek()

返回下一个字符,而不更改读取器状态或字符源。

Read()

读取输入流中的下一个字符并使该字符位置提升一个字符。

Read(Char[], Int32, Int32)

从当前流中读取指定数目的字符,并从指定位置开始将数据写入缓冲区。

ReadBlock(Char[], Int32, Int32)

count从当前流中读取最多个字符,并从索引开始将该数据写入缓冲区。

ReadLine()

从当前流中读取一行字符并将数据作为字符串返回。

ReadToEnd()

读取从当前位置到读取器末尾的所有字符,并将其作为字符串返回。

适用于