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

System.Xml.XmlConvert.ToChar Method

Converts a string to a char equivalent. [Edit]

public static char ToChar (string s)

Parameters

s
The string containing a single character to convert. [Edit]

Returns

The char equivalent of s. [Edit]

Exceptions

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

Remarks

This method calls char.Parse(string)(s). [Edit]

Requirements

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