Edit

Kongsi melalui


FormatterConverter.ToChar(Object) Method

Definition

Converts a value to a Unicode character.

public:
 virtual char ToChar(System::Object ^ value);
public char ToChar (object value);
abstract member ToChar : obj -> char
override this.ToChar : obj -> char
Public Function ToChar (value As Object) As Char

Parameters

value
Object

The object to convert.

Returns

The converted value or null if the type parameter is null.

Implements

Exceptions

The value parameter is null.

Remarks

This method uses the invariant culture (see CultureInfo.InvariantCulture). To use the current culture or to specify a culture, use the Convert.ToChar method instead. For more information, see Char, Convert, and ValueType.

Applies to