Class FileLineUtil
Utility of IFileLineIndex.
public static class FileLineUtil
- Inheritance
-
FileLineUtil
- Inherited Members
Methods
CompareFileLine(IFileLineIndex, IFileLineIndex)
Orders two file-line positions by FileIndex then LineIndex. Both operands must be non-null; callers decide how a missing (null) position sorts.
public static int CompareFileLine(this IFileLineIndex a, IFileLineIndex b)
Parameters
Returns
GetFileNo(IFileLineIndex)
Gets the file number (1-based) from the file line index.
public static int GetFileNo(this IFileLineIndex src)
Parameters
srcIFileLineIndexThe file line index.
Returns
- int
The file number (1-based).
GetLineNo(IFileLineIndex)
Gets the line number (1-based) from the file line index.
public static int GetLineNo(this IFileLineIndex src)
Parameters
srcIFileLineIndexThe file line index.
Returns
- int
The line number (1-based).