Mono Class Library: System.Xml.XmlConvert Overview | Members

System.Xml.XmlConvert.ToChar Method

Converts a string to a char equivalent.

public static char ToChar (string s)

Parameters

s
The string containing a single character to convert.

Returns

The char equivalent of s.

Exceptions

TypeReason
ArgumentNullExceptions is a null reference.
FormatExceptions contains more than one character.

Remarks

This method calls char.Parse(string)(s).

Requirements

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