SourceText Class

SourceText class

Base class implements the SourceText.

public abstract class SourceText : IDisposable

Properties

NameDescription
abstract Encoding { get; }Get encoding.
abstract Item { get; }Gets the value at the given index.
abstract Length { get; }Get the length.
Lines { get; }Get the Lines collection.
virtual Span { get; }Get the span.

Methods

NameDescription
static From(SourceText[])Define the interface for get SourceText from array of the source.
static From(string)Define the interface for get SourceText from string.
static From(string, Encoding)Define the interface for get SourceText from string and encoding.
abstract CopyTo(int, char[], int, int)Define the interface for get SourceText from array of the source.
Dispose()Defines the Dispose interface.
GetText()Define the interface for get Text.
GetText(int)Define the interface for get Text.
virtual GetText(TextSpan)Define the interface for get Text.
override ToString()Override the ToString() method.
ToString(int)Override the ToString() method.
virtual ToString(TextSpan)Defines the interface ToString()
ToString(int, int)Defines the interface ToString()

See Also