Extensions..::..LetterToNumber Method

Converts a character from a-z into a numeric index 0-25

Namespace:  AngbandOS.Core
Assembly:  AngbandOS.Core (in AngbandOS.Core.dll)

Syntax


public static int LetterToNumber(
	this char x
)

Parameters

x
Type: Char
The character to convert

Return Value

The index of the character