Table of Contents

Class FileLineUtil

Namespace
Hi.Common.FileLines
Assembly
HiGeom.dll

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

a IFileLineIndex
b IFileLineIndex

Returns

int

GetFileNo(IFileLineIndex)

Gets the file number (1-based) from the file line index.

public static int GetFileNo(this IFileLineIndex src)

Parameters

src IFileLineIndex

The 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

src IFileLineIndex

The file line index.

Returns

int

The line number (1-based).