Enhanced C#
Language of your choice: library documentation
|
Please use the new name of this class: LineColumnFile. Holds a filename (FileName), a line number (Line) and a position in the line (Column), representing a position in a source code file. More...
Please use the new name of this class: LineColumnFile. Holds a filename (FileName), a line number (Line) and a position in the line (Column), representing a position in a source code file.
Line and column numbering both start at one (1). Line=0 signifies nowhere in particular. Instances are immutable.
Public static fields | |
new static LineColumnFile | Nowhere = new LineColumnFile() |
![]() | |
static LineAndCol | Nowhere = new LineAndCol() |
Properties | |
string | FileName [get] |
![]() | |
int | Line [get] |
int | Column [get] |
int | PosInLine [get] |
![]() | |
int | Line [get] |
int | Column [get] |
![]() | |
string | FileName [get] |
Public Member Functions | |
SourcePos (string FileName, int Line, int PosInLine) | |
override string | ToString () |
override bool | Equals (object obj) |
override int | GetHashCode () |
![]() | |
LineAndColumn (int Line, int Column) | |
![]() | |
LineAndCol (int Line, int Column) | |
override string | ToString () |
override bool | Equals (object obj) |
override int | GetHashCode () |
Protected fields | |
string | _fileName |
![]() | |
int | _line |
int | _column |