mscorlib(4.0.0.0) API with additions
|
Defines methods that convert the value of the implementing reference or value type to a common language runtime type that has an equivalent value. More...
Public Member Functions | |
TypeCode | GetTypeCode () |
Returns the T:System.TypeCode for this instance. More... | |
bool | ToBoolean (IFormatProvider provider) |
Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information. More... | |
char | ToChar (IFormatProvider provider) |
Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information. More... | |
sbyte | ToSByte (IFormatProvider provider) |
Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information. More... | |
byte | ToByte (IFormatProvider provider) |
Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information. More... | |
short | ToInt16 (IFormatProvider provider) |
Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information. More... | |
ushort | ToUInt16 (IFormatProvider provider) |
Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information. More... | |
int | ToInt32 (IFormatProvider provider) |
Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information. More... | |
uint | ToUInt32 (IFormatProvider provider) |
Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information. More... | |
long | ToInt64 (IFormatProvider provider) |
Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information. More... | |
ulong | ToUInt64 (IFormatProvider provider) |
Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information. More... | |
float | ToSingle (IFormatProvider provider) |
Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information. More... | |
double | ToDouble (IFormatProvider provider) |
Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information. More... | |
decimal | ToDecimal (IFormatProvider provider) |
Converts the value of this instance to an equivalent T:System.Decimal number using the specified culture-specific formatting information. More... | |
DateTime | ToDateTime (IFormatProvider provider) |
Converts the value of this instance to an equivalent T:System.DateTime using the specified culture-specific formatting information. More... | |
string | ToString (IFormatProvider provider) |
Converts the value of this instance to an equivalent T:System.String using the specified culture-specific formatting information. More... | |
object | ToType (Type conversionType, IFormatProvider provider) |
Converts the value of this instance to an T:System.Object of the specified T:System.Type that has an equivalent value, using the specified culture-specific formatting information. More... | |
Defines methods that convert the value of the implementing reference or value type to a common language runtime type that has an equivalent value.
Definition at line 9 of file IConvertible.cs.
TypeCode System.IConvertible.GetTypeCode | ( | ) |
Returns the T:System.TypeCode for this instance.
Implemented in System.String, System.DateTime, System.Decimal, System.Enum, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, System.Boolean, and System.DBNull.
bool System.IConvertible.ToBoolean | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent Boolean value using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
byte System.IConvertible.ToByte | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
char System.IConvertible.ToChar | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
DateTime System.IConvertible.ToDateTime | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent T:System.DateTime using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
decimal System.IConvertible.ToDecimal | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent T:System.Decimal number using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
double System.IConvertible.ToDouble | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
short System.IConvertible.ToInt16 | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
int System.IConvertible.ToInt32 | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
long System.IConvertible.ToInt64 | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
sbyte System.IConvertible.ToSByte | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
float System.IConvertible.ToSingle | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
string System.IConvertible.ToString | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent T:System.String using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.String, System.DateTime, System.Enum, System.Decimal, System.Char, System.Double, System.Single, System.Byte, System.Int32, System.UInt32, System.UInt64, System.Int64, System.SByte, System.UInt16, System.Int16, System.Boolean, and System.DBNull.
object System.IConvertible.ToType | ( | Type | conversionType, |
IFormatProvider | provider | ||
) |
Converts the value of this instance to an T:System.Object of the specified T:System.Type that has an equivalent value, using the specified culture-specific formatting information.
conversionType | The T:System.Type to which the value of this instance is converted. |
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
ushort System.IConvertible.ToUInt16 | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
uint System.IConvertible.ToUInt32 | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.
ulong System.IConvertible.ToUInt64 | ( | IFormatProvider | provider | ) |
Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.
provider | An T:System.IFormatProvider interface implementation that supplies culture-specific formatting information. |
Implemented in System.DateTime, System.Decimal, System.Char, System.Double, System.Single, System.SByte, System.Int16, System.UInt16, System.Byte, System.UInt32, System.Int32, System.Int64, System.UInt64, and System.Boolean.