asp.net.ph

Convert.ToChar Method ( String )

System Namespace   Convert Class


Converts the first character of a String to a Unicode character.

[ VB ]
Overloads Public Shared Function ToChar ( _
   ByVal value As String _
) As Char

[ C# ]
public static char ToChar (
   string value
);

[ C++ ]
public: static __wchar_t ToChar (
   String* value
);

[ JScript ]
public static function ToChar (
   value : String
) : Char;

Parameters

value
A String of length 1 or a null reference ( Nothing in Visual Basic ).

Return Value

The Unicode character equivalent to the first and only character in value.

Exceptions


Exception Type Condition
ArgumentNullException value is a null reference ( Nothing in Visual Basic ).
FormatException The length of value is not 1.

Remarks

value must be a null reference ( Nothing in Visual Basic ) or a String containing a single character.

See Also

Convert Members   Convert.ToChar Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph