Edit

Share via


String.IConvertible.ToChar(IFormatProvider) Method

Definition

For a description of this member, see ToChar(IFormatProvider).

 virtual char System.IConvertible.ToChar(IFormatProvider ^ provider) = IConvertible::ToChar;
char IConvertible.ToChar (IFormatProvider provider);
abstract member System.IConvertible.ToChar : IFormatProvider -> char
override this.System.IConvertible.ToChar : IFormatProvider -> char
Function ToChar (provider As IFormatProvider) As Char Implements IConvertible.ToChar

Parameters

provider
IFormatProvider

An object that provides culture-specific formatting information.

Returns

The character at index 0 in the current String object.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the String instance is cast to an IConvertible interface. The recommended alternative is to call the Convert.ToChar(String, IFormatProvider) method.

Applies to