示例#1
0
 /// <summary>
 /// Initializes all fields to default values
 /// </summary>
 /// <param name="reader">The text stream to read data from.</param>
 public HtmlTextReader(TextReader reader)
 {
     _reader       = reader;
     _buffer       = new StringBuilder(265);
     _curChar      = '\0';
     _state        = State.Initial;
     _lineNumber   = 1;
     _nestedTokens = new TokenStack();
     _eof          = false;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HtmlTextWriter"/> with
 /// the text stream to write data to.
 /// </summary>
 /// <param name="writer">
 /// The <see cref="TextWriter"/> to write data to.> to write data to.
 /// </param>
 public HtmlTextWriter(TextWriter writer)
 {
     _writer       = writer;
     _nestedTokens = new TokenStack();
 }