CcUtilities.GetLineNumber method
Returns the line number in the source string at the specified character index.
public static int GetLineNumber(string source, int index)
parameter | description |
---|---|
source | The source string to search. |
index | The character index for which to find the line number. |
Return Value
The line number at the specified index.
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | Thrown when index is out of range. |
See Also
- class CcUtilities
- namespace Kestrun.Utilities