This documentation is archived and is not being maintained.

IConvertible Methods

The methods of the IConvertible interface are listed here. For a complete list of IConvertible interface members, see the IConvertible Members topic.

Public Methods

public methodGetTypeCode

Supported by the .NET Compact Framework.

Returns the TypeCode for this instance.
public methodToBoolean

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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.
public methodToUInt16

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

See Also

IConvertible Interface | System Namespace

Show: