Class StringSource
Concrete implementation of the IHtmlSource interface for pulling HTML from a string.
Inheritance
System.Object
StringSource
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 9.12.2Syntax
public class StringSource : IHtmlSource
Constructors
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 |