mirror of
https://github.com/xoofx/markdig.git
synced 2026-10-10 15:47:39 +00:00
25 lines
448 B
C#
25 lines
448 B
C#
namespace Textamina.Markdig.Syntax
|
|
{
|
|
public struct StringSlice
|
|
{
|
|
public StringSlice(string text, int start, int end)
|
|
{
|
|
Text = text;
|
|
Start = start;
|
|
End = end;
|
|
}
|
|
|
|
public string Text;
|
|
|
|
public int Start;
|
|
|
|
public int End;
|
|
|
|
public int Length
|
|
{
|
|
get { return End - Start; }
|
|
|
|
set { End = Start + value; }
|
|
}
|
|
}
|
|
} |