System.Char.Parse Method

Converts the value of the specified string to its equivalent Unicode character.

Syntax

public static char Parse (string s)

Parameters

s
A string that contains a single character, or null.

Returns

A Unicode character equivalent to the sole character in s.

Exceptions

TypeReason
ArgumentNullException s is a null reference.
FormatException s 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, 4.0.0.0