TechNet
Export (0) Print
Expand All

Convert Class

 

Converts a base data type to another base data type.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)


public static class Convert

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticChangeType(Object, Type)

Returns an object of the specified type and whose value is equivalent to the specified object.

System_CAPS_pubmethodSystem_CAPS_staticChangeType(Object, Type, IFormatProvider)

Returns an object of the specified type whose value is equivalent to the specified object. A parameter supplies culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticChangeType(Object, TypeCode)

Returns an object of the specified type whose value is equivalent to the specified object.

System_CAPS_pubmethodSystem_CAPS_staticChangeType(Object, TypeCode, IFormatProvider)

Returns an object of the specified type whose value is equivalent to the specified object. A parameter supplies culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticFromBase64CharArray(Char[], Int32, Int32)

Converts a subset of a Unicode character array, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array. Parameters specify the subset in the input array and the number of elements to convert.

System_CAPS_pubmethodSystem_CAPS_staticFromBase64String(String)

Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.

System_CAPS_pubmethodSystem_CAPS_staticGetTypeCode(Object)

Returns the TypeCode for the specified object.

System_CAPS_pubmethodSystem_CAPS_staticIsDBNull(Object)

Returns an indication whether the specified object is of type DBNull.

System_CAPS_pubmethodSystem_CAPS_staticToBase64CharArray(Byte[], Int32, Int32, Char[], Int32)

Converts a subset of an 8-bit unsigned integer array to an equivalent subset of a Unicode character array encoded with base-64 digits. Parameters specify the subsets as offsets in the input and output arrays, and the number of elements in the input array to convert.

System_CAPS_pubmethodSystem_CAPS_staticToBase64CharArray(Byte[], Int32, Int32, Char[], Int32, Base64FormattingOptions)

Converts a subset of an 8-bit unsigned integer array to an equivalent subset of a Unicode character array encoded with base-64 digits. Parameters specify the subsets as offsets in the input and output arrays, the number of elements in the input array to convert, and whether line breaks are inserted in the output array.

System_CAPS_pubmethodSystem_CAPS_staticToBase64String(Byte[])

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits.

System_CAPS_pubmethodSystem_CAPS_staticToBase64String(Byte[], Base64FormattingOptions)

Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits. A parameter specifies whether to insert line breaks in the return value.

System_CAPS_pubmethodSystem_CAPS_staticToBase64String(Byte[], Int32, Int32)

Converts a subset of an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits. Parameters specify the subset as an offset in the input array, and the number of elements in the array to convert.

System_CAPS_pubmethodSystem_CAPS_staticToBase64String(Byte[], Int32, Int32, Base64FormattingOptions)

Converts a subset of an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits. Parameters specify the subset as an offset in the input array, the number of elements in the array to convert, and whether to insert line breaks in the return value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Boolean)

Returns the specified Boolean value; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Byte)

Converts the value of the specified 8-bit unsigned integer to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Char)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Decimal)

Converts the value of the specified decimal number to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Double)

Converts the value of the specified double-precision floating-point number to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Int16)

Converts the value of the specified 16-bit signed integer to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Object)

Converts the value of a specified object to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Object, IFormatProvider)

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

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(SByte)

Converts the value of the specified 8-bit signed integer to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(Single)

Converts the value of the specified single-precision floating-point number to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(String)

Converts the specified string representation of a logical value to its Boolean equivalent.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(String, IFormatProvider)

Converts the specified string representation of a logical value to its Boolean equivalent, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(UInt16)

Converts the value of the specified 16-bit unsigned integer to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToBoolean(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent Boolean value.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Boolean)

Converts the specified Boolean value to the equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Byte)

Returns the specified 8-bit unsigned integer; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Char)

Converts the value of the specified Unicode character to the equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Decimal)

Converts the value of the specified decimal number to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Int16)

Converts the value of the specified 16-bit signed integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Object)

Converts the value of the specified object to an 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Object, IFormatProvider)

Converts the value of the specified object to an 8-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToByte(SByte)

Converts the value of the specified 8-bit signed integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(String)

Converts the specified string representation of a number to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 8-bit unsigned integer, using specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToByte(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(UInt16)

Converts the value of the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToByte(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Boolean)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Byte)

Converts the value of the specified 8-bit unsigned integer to its equivalent Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Char)

Returns the specified Unicode character value; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToChar(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Decimal)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Double)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Int16)

Converts the value of the specified 16-bit signed integer to its equivalent Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Int32)

Converts the value of the specified 32-bit signed integer to its equivalent Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Int64)

Converts the value of the specified 64-bit signed integer to its equivalent Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Object)

Converts the value of the specified object to a Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Object, IFormatProvider)

Converts the value of the specified object to its equivalent Unicode character, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToChar(SByte)

Converts the value of the specified 8-bit signed integer to its equivalent Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToChar(Single)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToChar(String)

Converts the first character of a specified string to a Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToChar(String, IFormatProvider)

Converts the first character of a specified string to a Unicode character, using specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToChar(UInt16)

Converts the value of the specified 16-bit unsigned integer to its equivalent Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToChar(UInt32)

Converts the value of the specified 32-bit unsigned integer to its equivalent Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToChar(UInt64)

Converts the value of the specified 64-bit unsigned integer to its equivalent Unicode character.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Boolean)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Byte)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Char)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(DateTime)

Returns the specified DateTime object; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Decimal)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Double)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Int16)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Int32)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Int64)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Object)

Converts the value of the specified object to a DateTime object.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Object, IFormatProvider)

Converts the value of the specified object to a DateTime object, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(SByte)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(Single)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(String)

Converts the specified string representation of a date and time to an equivalent date and time value.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent date and time, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(UInt16)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(UInt32)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDateTime(UInt64)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Boolean)

Converts the specified Boolean value to the equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Char)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Decimal)

Returns the specified decimal number; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Double)

Converts the value of the specified double-precision floating-point number to an equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Int16)

Converts the value of the specified 16-bit signed integer to an equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Object)

Converts the value of the specified object to an equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Object, IFormatProvider)

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

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(Single)

Converts the value of the specified single-precision floating-point number to the equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(String)

Converts the specified string representation of a number to an equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent decimal number, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(UInt16)

Converts the value of the specified 16-bit unsigned integer to an equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDecimal(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent decimal number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Boolean)

Converts the specified Boolean value to the equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Char)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Decimal)

Converts the value of the specified decimal number to an equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Double)

Returns the specified double-precision floating-point number; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Int16)

Converts the value of the specified 16-bit signed integer to an equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Object)

Converts the value of the specified object to a double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Object, IFormatProvider)

Converts the value of the specified object to an double-precision floating-point number, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(Single)

Converts the value of the specified single-precision floating-point number to an equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(String)

Converts the specified string representation of a number to an equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent double-precision floating-point number, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(UInt16)

Converts the value of the specified 16-bit unsigned integer to the equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToDouble(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent double-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Boolean)

Converts the specified Boolean value to the equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Char)

Converts the value of the specified Unicode character to the equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Decimal)

Converts the value of the specified decimal number to an equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Int16)

Returns the specified 16-bit signed integer; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Object)

Converts the value of the specified object to a 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Object, IFormatProvider)

Converts the value of the specified object to a 16-bit signed integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(String)

Converts the specified string representation of a number to an equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 16-bit signed integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(UInt16)

Converts the value of the specified 16-bit unsigned integer to the equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt16(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Boolean)

Converts the specified Boolean value to the equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Char)

Converts the value of the specified Unicode character to the equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Decimal)

Converts the value of the specified decimal number to an equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Int16)

Converts the value of the specified 16-bit signed integer to an equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Int32)

Returns the specified 32-bit signed integer; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Object)

Converts the value of the specified object to a 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Object, IFormatProvider)

Converts the value of the specified object to a 32-bit signed integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(String)

Converts the specified string representation of a number to an equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 32-bit signed integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(UInt16)

Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt32(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Boolean)

Converts the specified Boolean value to the equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Char)

Converts the value of the specified Unicode character to the equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Decimal)

Converts the value of the specified decimal number to an equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Int16)

Converts the value of the specified 16-bit signed integer to an equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Int64)

Returns the specified 64-bit signed integer; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Object)

Converts the value of the specified object to a 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Object, IFormatProvider)

Converts the value of the specified object to a 64-bit signed integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(String)

Converts the specified string representation of a number to an equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 64-bit signed integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(UInt16)

Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToInt64(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent 64-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Boolean)

Converts the specified Boolean value to the equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Char)

Converts the value of the specified Unicode character to the equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Decimal)

Converts the value of the specified decimal number to an equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Int16)

Converts the value of the specified 16-bit signed integer to the equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Object)

Converts the value of the specified object to an 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Object, IFormatProvider)

Converts the value of the specified object to an 8-bit signed integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(SByte)

Returns the specified 8-bit signed integer; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(String)

Converts the specified string representation of a number to an equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 8-bit signed integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(UInt16)

Converts the value of the specified 16-bit unsigned integer to the equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSByte(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit signed integer.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Boolean)

Converts the specified Boolean value to the equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Char)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Decimal)

Converts the value of the specified decimal number to an equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Double)

Converts the value of the specified double-precision floating-point number to an equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Int16)

Converts the value of the specified 16-bit signed integer to an equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Object)

Converts the value of the specified object to a single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Object, IFormatProvider)

Converts the value of the specified object to an single-precision floating-point number, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(Single)

Returns the specified single-precision floating-point number; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(String)

Converts the specified string representation of a number to an equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent single-precision floating-point number, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(UInt16)

Converts the value of the specified 16-bit unsigned integer to the equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToSingle(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent single-precision floating-point number.

System_CAPS_pubmethodSystem_CAPS_staticToString(Boolean)

Converts the specified Boolean value to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Boolean, IFormatProvider)

Converts the specified Boolean value to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Byte)

Converts the value of the specified 8-bit unsigned integer to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Byte, IFormatProvider)

Converts the value of the specified 8-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(Byte, Int32)

Converts the value of an 8-bit unsigned integer to its equivalent string representation in a specified base.

System_CAPS_pubmethodSystem_CAPS_staticToString(Char)

Converts the value of the specified Unicode character to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Char, IFormatProvider)

Converts the value of the specified Unicode character to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(DateTime)

Converts the value of the specified DateTime to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(DateTime, IFormatProvider)

Converts the value of the specified DateTime to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(Decimal)

Converts the value of the specified decimal number to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Decimal, IFormatProvider)

Converts the value of the specified decimal number to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(Double)

Converts the value of the specified double-precision floating-point number to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Double, IFormatProvider)

Converts the value of the specified double-precision floating-point number to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Int16)

Converts the value of the specified 16-bit signed integer to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Int16, IFormatProvider)

Converts the value of the specified 16-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(Int16, Int32)

Converts the value of a 16-bit signed integer to its equivalent string representation in a specified base.

System_CAPS_pubmethodSystem_CAPS_staticToString(Int32)

Converts the value of the specified 32-bit signed integer to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Int32, IFormatProvider)

Converts the value of the specified 32-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(Int32, Int32)

Converts the value of a 32-bit signed integer to its equivalent string representation in a specified base.

System_CAPS_pubmethodSystem_CAPS_staticToString(Int64)

Converts the value of the specified 64-bit signed integer to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Int64, IFormatProvider)

Converts the value of the specified 64-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(Int64, Int32)

Converts the value of a 64-bit signed integer to its equivalent string representation in a specified base.

System_CAPS_pubmethodSystem_CAPS_staticToString(Object)

Converts the value of the specified object to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Object, IFormatProvider)

Converts the value of the specified object to its equivalent string representation using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(SByte)

Converts the value of the specified 8-bit signed integer to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(SByte, IFormatProvider)

Converts the value of the specified 8-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(Single)

Converts the value of the specified single-precision floating-point number to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(Single, IFormatProvider)

Converts the value of the specified single-precision floating-point number to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(String)

Returns the specified string instance; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToString(String, IFormatProvider)

Returns the specified string instance; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToString(UInt16)

Converts the value of the specified 16-bit unsigned integer to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(UInt16, IFormatProvider)

Converts the value of the specified 16-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(UInt32)

Converts the value of the specified 32-bit unsigned integer to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(UInt32, IFormatProvider)

Converts the value of the specified 32-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToString(UInt64)

Converts the value of the specified 64-bit unsigned integer to its equivalent string representation.

System_CAPS_pubmethodSystem_CAPS_staticToString(UInt64, IFormatProvider)

Converts the value of the specified 64-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Boolean)

Converts the specified Boolean value to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Char)

Converts the value of the specified Unicode character to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Decimal)

Converts the value of the specified decimal number to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Int16)

Converts the value of the specified 16-bit signed integer to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Object)

Converts the value of the specified object to a 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Object, IFormatProvider)

Converts the value of the specified object to a 16-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(String)

Converts the specified string representation of a number to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 16-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(UInt16)

Returns the specified 16-bit unsigned integer; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt16(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Boolean)

Converts the specified Boolean value to the equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Char)

Converts the value of the specified Unicode character to the equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Decimal)

Converts the value of the specified decimal number to an equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Int16)

Converts the value of the specified 16-bit signed integer to the equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Object)

Converts the value of the specified object to a 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Object, IFormatProvider)

Converts the value of the specified object to a 32-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(String)

Converts the specified string representation of a number to an equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 32-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(UInt16)

Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(UInt32)

Returns the specified 32-bit unsigned integer; no actual conversion is performed.

System_CAPS_pubmethodSystem_CAPS_staticToUInt32(UInt64)

Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Boolean)

Converts the specified Boolean value to the equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Byte)

Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Char)

Converts the value of the specified Unicode character to the equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(DateTime)

Calling this method always throws InvalidCastException.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Decimal)

Converts the value of the specified decimal number to an equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Double)

Converts the value of the specified double-precision floating-point number to an equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Int16)

Converts the value of the specified 16-bit signed integer to the equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Int32)

Converts the value of the specified 32-bit signed integer to an equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Int64)

Converts the value of the specified 64-bit signed integer to an equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Object)

Converts the value of the specified object to a 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Object, IFormatProvider)

Converts the value of the specified object to a 64-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(SByte)

Converts the value of the specified 8-bit signed integer to the equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(Single)

Converts the value of the specified single-precision floating-point number to an equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(String)

Converts the specified string representation of a number to an equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(String, IFormatProvider)

Converts the specified string representation of a number to an equivalent 64-bit unsigned integer, using the specified culture-specific formatting information.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(String, Int32)

Converts the string representation of a number in a specified base to an equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(UInt16)

Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(UInt32)

Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit unsigned integer.

System_CAPS_pubmethodSystem_CAPS_staticToUInt64(UInt64)

Returns the specified 64-bit unsigned integer; no actual conversion is performed.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticDBNull

A constant that represents a database column that is absent of data; that is, database null.

The static methods of the Convert class are primarily used to support conversion to and from the base data types in the .NET Framework. The supported base types are Boolean, Char, SByte, Byte, Int16, Int32, Int64, UInt16, UInt32, UInt64, Single, Double, Decimal, DateTime and String. In addition, the Convert class includes methods to support other kinds of conversions.

This topic consists of the following sections:

Conversions to and from Base Types
Non-Decimal Numbers
Conversions from Custom Objects to Base Types
Culture-Specific Formatting Information
Base64 Encoding
Other Common Conversions

A conversion method exists to convert every base type to every other base type. However, the actual call to a particular conversion method can produce one of five outcomes, depending on the value of the base type at run time and the target base type. These five outcomes are:

  • No conversion. This occurs when an attempt is made to convert from a type to itself (for example, by calling Convert.ToInt32(Int32) with an argument of type Int32). In this case, the method simply returns an instance of the original type.

  • An InvalidCastException. This occurs when a particular conversion is not supported. An InvalidCastException is thrown for the following conversions:

  • A FormatException. This occurs when the attempt to convert a string value to any other base type fails because the string is not in the proper format. The exception is thrown for the following conversions:

    • A string to be converted to a Boolean value does not equal Boolean.TrueString or Boolean.FalseString.

    • A string to be converted to a Char value consists of multiple characters.

    • A string to be converted to any numeric type is not recognized as a valid number.

    • A string to be converted to a DateTime is not recognized as a valid date and time value.

  • A successful conversion. For conversions between two different base types not listed in the previous outcomes, all widening conversions as well as all narrowing conversions that do not result in a loss of data will succeed and the method will return a value of the targeted base type.

  • An OverflowException. This occurs when a narrowing conversion results in a loss of data. For example, trying to convert a Int32 instance whose value is 10000 to a Byte type throws an OverflowException because 10000 is outside the range of the Byte data type.

An exception will not be thrown if the conversion of a numeric type results in a loss of precision (that is, the loss of some least significant digits). However, an exception will be thrown if the result is larger than can be represented by the particular conversion method's return value type.

For example, when a Double is converted to a Single, a loss of precision might occur but no exception is thrown. However, if the magnitude of the Double is too large to be represented by a Single, an overflow exception is thrown.

The Convert class includes static methods that you can call to convert integral values to non-decimal string representations, and to convert strings that represent non-decimal numbers to integral values. Each of these conversion methods includes a base argument that lets you specify the number system; binary (base 2), octal (base 8), and hexadecimal (base 16), as well as decimal (base 10). There is a set of methods to convert each of the CLS-compliant primitive integral types to a string, and one to convert a string to each of the primitive integral types:

The following example converts the value of Int16.MaxValue to a string in all supported numeric formats. It then converts the string value back to a Int16 value.

using System;

public class Example
{
   public static void Main()
   {
      int[] baseValues = { 2, 8, 10, 16 };
      short value = Int16.MaxValue;
      foreach (var baseValue in baseValues) {
         String s = Convert.ToString(value, baseValue);
         short value2 = Convert.ToInt16(s, baseValue);

         Console.WriteLine("{0} --> {1} (base {2}) --> {3}", 
                           value, s, baseValue, value2);
      }                     
   }
}
// The example displays the following output:
//     32767 --> 111111111111111 (base 2) --> 32767
//     32767 --> 77777 (base 8) --> 32767
//     32767 --> 32767 (base 10) --> 32767
//     32767 --> 7fff (base 16) --> 32767

In addition to supporting conversions between the base types, the Convert method supports conversion of any custom type to any base type. To do this, the custom type must implement the IConvertible interface, which defines methods for converting the implementing type to each of the base types. Conversions that are not supported by a particular type should throw an InvalidCastException.

When the ChangeType method is passed a custom type as its first parameter, or when the Convert.ToType method (such as Convert.ToInt32(Object) or Convert.ToDouble(Object, IFormatProvider) is called and passed an instance of a custom type as its first parameter, the Convert method, in turn, calls the custom type's IConvertible implementation to perform the conversion. For more information, see Type Conversion in the .NET Framework.

All the base type conversion methods and the ChangeType method include overloads that have a parameter of type IFormatProvider. For example, the Convert.ToBoolean method has the following two overloads:

The IFormatProvider parameter can supply culture-specific formatting information to assist the conversion process. However, it is ignored by most of the base type conversion methods. It is used only by the following base type conversion methods.If a nullIFormatProvider argument is passed to these methods, the CultureInfo object that represents the current thread culture is used.

However, any user-defined type that implements IConvertible can make use of the IFormatProvider parameter.

Base64 encoding converts binary data to a string. Data expressed as base-64 digits can be easily conveyed over data channels that can only transmit 7-bit characters. The Convert class includes the following methods to support base64 encoding: A set of methods support converting an array of bytes to and from a String or to and from an array of Unicode characters consisting of base-64 digit characters.

You can use other classes in the NET Framework to perform some conversions that are not supported by the static methods of the Convert class. These include:

Conversion to byte arrays

The BitConverter class provides methods that convert the primitive numeric types (including Boolean) to byte arrays and from byte arrays back to primitive data types.

Character encoding and decoding

The Encoding class and its derived classes (such as UnicodeEncoding and UTF8Encoding) provide methods to encode a character array or a string (that is, to convert them to a byte array in a particular encoding) and to decode an encoded byte array (that is, convert a byte array back to UTF16-encoded Unicode characters. For more information, see Character Encoding in the .NET Framework

The following example demonstrates some of the conversion methods in the Convert class, including ToInt32, ToBoolean, and ToString.

double dNumber = 23.15;

try {
	// Returns 23
	int    iNumber = System.Convert.ToInt32(dNumber);
}
catch (System.OverflowException) {
	System.Console.WriteLine(
				"Overflow in double to int conversion.");
}
// Returns True
bool   bNumber = System.Convert.ToBoolean(dNumber);

// Returns "23.15"
string strNumber = System.Convert.ToString(dNumber);

try {
	// Returns '2'
	char chrNumber = System.Convert.ToChar(strNumber[0]);
} 
catch (System.ArgumentNullException) {
	System.Console.WriteLine("String is null");
}
catch (System.FormatException) {
	System.Console.WriteLine("String length is greater than 1.");
}

// System.Console.ReadLine() returns a string and it
// must be converted.
int newInteger = 0;
try {
	System.Console.WriteLine("Enter an integer:");
	newInteger = System.Convert.ToInt32(
						System.Console.ReadLine());
}
catch (System.ArgumentNullException) {
	System.Console.WriteLine("String is null.");
}
catch (System.FormatException) {
	System.Console.WriteLine("String does not consist of an " +
					"optional sign followed by a series of digits.");
} 
catch (System.OverflowException) {
	System.Console.WriteLine(
	"Overflow in string to int conversion.");
}

System.Console.WriteLine("Your integer as a double is {0}",
						 System.Convert.ToDouble(newInteger));

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft