Mark Struct

Represents a location inside a file

public readonly struct Mark

Constructors

NameDescription
Mark(int, int, int)Initializes a new mark at the specified source location.

Mark(int, int, int)

Mark.cs

Initializes a new mark at the specified source location.

public Mark(int index, int line, int column)

Parameters

index int
line int
column int

Properties

NameDescription
ColumnGets / sets the index of the column
IndexGets / sets the absolute offset in the file
LineGets / sets the number of the line

Column

Mark.cs

Gets / sets the index of the column

public int Column { get; }

Property value

int

Index

Mark.cs

Gets / sets the absolute offset in the file

public int Index { get; }

Property value

int

Gets / sets the number of the line

public int Line { get; }

Property value

int

Methods

NameDescription
ToString()Returns a String that represents this instance.

ToString()

Mark.cs

Returns a String that represents this instance.

public override string ToString()

Returns

string A String that represents this instance.

Fields

NameDescription
EmptyGets a Mark with empty values.

Empty

Gets a Mark with empty values.

public static readonly Mark Empty