Edit

Share via


Conversions.ToChar Method

Definition

Converts the specified object to a Char value.

Overloads

ToChar(Object)

Converts an object to a Char value.

ToChar(String)

Converts a string to a Char value.

ToChar(Object)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Converts an object to a Char value.

public:
 static char ToChar(System::Object ^ Value);
public static char ToChar (object Value);
public static char ToChar (object? Value);
static member ToChar : obj -> char
Public Shared Function ToChar (Value As Object) As Char

Parameters

Value
Object

The object to convert.

Returns

The Char value of the object.

Applies to

ToChar(String)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Converts a string to a Char value.

public:
 static char ToChar(System::String ^ Value);
public static char ToChar (string Value);
public static char ToChar (string? Value);
static member ToChar : string -> char
Public Shared Function ToChar (Value As String) As Char

Parameters

Value
String

The string to convert.

Returns

The Char value of the string.

Applies to