Class StringSource
Concrete implementation of the IHtmlSource interface for pulling HTML from a string.
Inheritance
System.Object
    StringSource
  Implements
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class StringSource : Object, IHtmlSourceConstructors
StringSource(String)
Initializes a new instance of the StringSource class.
Declaration
public StringSource(string source)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | source | The source. | 
Methods
Peek()
Peeks at the next character from the source.
Declaration
public char Peek()Returns
| Type | Description | 
|---|---|
| System.Char | The next character. If End-Of-Stream reached, returns 0xffff | 
Pushback(Char)
Push back the specified character.
Declaration
public void Pushback(char character)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Char | character | The character. | 
Remarks
This implementatino will ignore the actual character value and simply back up to the previous character in the string.
Read()
Reads the next character from the source.
Declaration
public char Read()Returns
| Type | Description | 
|---|---|
| System.Char | The next character. If End-Of-Stream reached, returns 0xffff | 
