System.IConvertible: Method Members

The methods of System.IConvertible are listed below. For a list of all members, see the IConvertible Members list.

Public Methods

GetTypeCode() : TypeCode

Returns the TypeCode for this instance.

ToBoolean(IFormatProvider) : bool

Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.

ToByte(IFormatProvider) : byte

Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.

ToChar(IFormatProvider) : char

Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.

ToDateTime(IFormatProvider) : DateTime

Converts the value of this instance to an equivalent DateTime using the specified culture-specific formatting information.

ToDecimal(IFormatProvider) : decimal

Converts the value of this instance to an equivalent decimal number using the specified culture-specific formatting information.

ToDouble(IFormatProvider) : double

Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.

ToInt16(IFormatProvider) : short

Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.

ToInt32(IFormatProvider) : int

Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.

ToInt64(IFormatProvider) : long

Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.

ToSByte(IFormatProvider) : sbyte

Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.

ToSingle(IFormatProvider) : float

Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.

ToString(IFormatProvider) : string

Converts the value of this instance to an equivalent string using the specified culture-specific formatting information.

ToType(Type, IFormatProvider) : object

Converts the value of this instance to an object of the specified Type that has an equivalent value, using the specified culture-specific formatting information.

ToUInt16(IFormatProvider) : ushort

Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.

ToUInt32(IFormatProvider) : uint

Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.

ToUInt64(IFormatProvider) : ulong

Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.