RomanNumerals.ToInteger method (1 of 2)

Converts the specified roman numeral letter to an integer.

public static int ToInteger(char ch)
parameter description
ch The letter.

Return Value

The corresponding integer, or zero if the letter isn’t a roman numeral.

See Also


RomanNumerals.ToInteger method (2 of 2)

Converts the specified roman numeral string to an integer.

public static int ToInteger(string str)
parameter description
str The string.

Return Value

The corresponding integer, or zero if the string contains anything that isn’t a roman numeral.

See Also