ToChar()

XmlConvert::ToChar(const String&) method

Converts the String to a Char equivalent.

static char16_t System::Xml::XmlConvert::ToChar(const String &s)

Arguments

ParameterTypeDescription
sconst String&The string containing a single character to convert.

Return Value

A Char representing the single character.

Exceptions

ExceptionDescription
ArgumentNullExceptionThe value of the s parameter is nullptr.
FormatExceptionThe s parameter contains more than one character.

See Also