Click or drag to resize
AlphabetToIndex Method
Returns the index corresponding to the argument character.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public int ToIndex(
	char c
)

Parameters

c
Type: SystemChar
the character

Return Value

Type: Int32
the index corresponding to the character c
Exceptions
ExceptionCondition
ArgumentExceptionunless c is a character in this alphabet
See Also