Mono Class Library: System.Convert Overview | Members

System.Convert.ToChar Method

Converts a string to a char .

public static char ToChar (string value)

Parameters

value
The string to be converted. The string is required to contain a single character.

Returns

value as a char.

Exceptions

TypeReason
FormatExceptionvalue does not contain exactly one character.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0