C# Class MS.Internal.Xml.Cache.XPathDocumentBuilder.TextBlockBuilder

This class concatenates adjacent text blocks and tracks TextBlockType and line number information.
Mostra file Open project: gbarnett/shared-source-cli-2.0

Public Methods

Method Description
Initialize ( IXmlLineInfo lineInfo ) : void

Constructor.

ReadText ( ) : string

Read all cached text, or string.Empty if no text has been cached, and clear the text block type.

WriteTextBlock ( string text, TextBlockType textType ) : void

Append a text block with the specified type.

Method Details

Initialize() public method

Constructor.
public Initialize ( IXmlLineInfo lineInfo ) : void
lineInfo IXmlLineInfo
return void

ReadText() public method

Read all cached text, or string.Empty if no text has been cached, and clear the text block type.
public ReadText ( ) : string
return string

WriteTextBlock() public method

Append a text block with the specified type.
public WriteTextBlock ( string text, TextBlockType textType ) : void
text string
textType TextBlockType
return void