Class SourceText
Inheritance
System.Object
SourceText
Assembly: DotLang.dll
Syntax
public sealed class SourceText
Properties
|
Improve this Doc
View Source
Item[Int32]
Declaration
public char this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Type |
Description |
System.Char |
|
|
Improve this Doc
View Source
Length
Declaration
public int Length { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
From(TextReader)
Declaration
public static SourceText From(TextReader reader)
Parameters
Type |
Name |
Description |
System.IO.TextReader |
reader |
|
Returns
|
Improve this Doc
View Source
From(String)
Declaration
public static SourceText From(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
|
Improve this Doc
View Source
FromAsync(TextReader, CancellationToken)
Declaration
public static Task<SourceText> FromAsync(TextReader reader, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type |
Name |
Description |
System.IO.TextReader |
reader |
|
System.Threading.CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<SourceText> |
|
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
ToString(TextSpan)
Declaration
public string ToString(TextSpan span)
Parameters
Returns
Type |
Description |
System.String |
|