Export (0) Print
Expand All

Convert Class

Converts a base data type to another base data type.

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

[<AbstractClass>]
[<Sealed>]
type Convert =  class end

The Convert type exposes the following members.

  NameDescription
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsChangeType(Object, Type)Returns an object of the specified type and whose value is equivalent to the specified object.
Public methodStatic memberChangeType(Object, TypeCode)Returns an object of the specified type whose value is equivalent to the specified object.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsChangeType(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.
Public methodStatic memberSupported by the XNA FrameworkChangeType(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.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsFromBase64CharArrayConverts 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.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsFromBase64StringConverts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.
Public methodStatic memberSupported by the XNA FrameworkGetTypeCodeReturns the TypeCode for the specified object.
Public methodStatic memberSupported by the XNA FrameworkIsDBNullReturns an indication whether the specified object is of type DBNull.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBase64CharArray(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.
Public methodStatic memberToBase64CharArray(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.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBase64String(Byte[])Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits.
Public methodStatic memberToBase64String(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.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBase64String(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.
Public methodStatic memberToBase64String(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.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Boolean)Returns the specified Boolean value; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Byte)Converts the value of the specified 8-bit unsigned integer to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkToBoolean(Char)Calling this method always throws InvalidCastException.
Public methodStatic memberToBoolean(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Decimal)Converts the value of the specified decimal number to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Double)Converts the value of the specified double-precision floating-point number to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Int16)Converts the value of the specified 16-bit signed integer to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Int32)Converts the value of the specified 32-bit signed integer to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Int64)Converts the value of the specified 64-bit signed integer to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Object)Converts the value of a specified object to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(SByte)Converts the value of the specified 8-bit signed integer to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Single)Converts the value of the specified single-precision floating-point number to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(String)Converts the specified string representation of a logical value to its Boolean equivalent.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(UInt16)Converts the value of the specified 16-bit unsigned integer to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent Boolean value.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(Object, IFormatProvider)Converts the value of the specified object to an equivalent Boolean value, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToBoolean(String, IFormatProvider)Converts the specified string representation of a logical value to its Boolean equivalent, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Boolean)Converts the specified Boolean value to the equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Byte)Returns the specified 8-bit unsigned integer; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Char)Converts the value of the specified Unicode character to the equivalent 8-bit unsigned integer.
Public methodStatic memberToByte(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Decimal)Converts the value of the specified decimal number to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Double)Converts the value of the specified double-precision floating-point number to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Int16)Converts the value of the specified 16-bit signed integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Int32)Converts the value of the specified 32-bit signed integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Int64)Converts the value of the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Object)Converts the value of the specified object to an 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(SByte)Converts the value of the specified 8-bit signed integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Single)Converts the value of the specified single-precision floating-point number to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(String)Converts the specified string representation of a number to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(UInt16)Converts the value of the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(Object, IFormatProvider)Converts the value of the specified object to an 8-bit unsigned integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(String, IFormatProvider)Converts the specified string representation of a number to an equivalent 8-bit unsigned integer, using specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToByte(String, Int32)Converts the string representation of a number in a specified base to an equivalent 8-bit unsigned integer.
Public methodStatic memberToChar(Boolean)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(Byte)Converts the value of the specified 8-bit unsigned integer to its equivalent Unicode character.
Public methodStatic memberSupported by the XNA FrameworkToChar(Char)Returns the specified Unicode character value; no actual conversion is performed.
Public methodStatic memberToChar(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkToChar(Decimal)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkToChar(Double)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(Int16)Converts the value of the specified 16-bit signed integer to its equivalent Unicode character.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(Int32)Converts the value of the specified 32-bit signed integer to its equivalent Unicode character.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(Int64)Converts the value of the specified 64-bit signed integer to its equivalent Unicode character.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(Object)Converts the value of the specified object to a Unicode character.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(SByte)Converts the value of the specified 8-bit signed integer to its equivalent Unicode character.
Public methodStatic memberSupported by the XNA FrameworkToChar(Single)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(String)Converts the first character of a specified string to a Unicode character.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(UInt16)Converts the value of the specified 16-bit unsigned integer to its equivalent Unicode character.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(UInt32)Converts the value of the specified 32-bit unsigned integer to its equivalent Unicode character.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(UInt64)Converts the value of the specified 64-bit unsigned integer to its equivalent Unicode character.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(Object, IFormatProvider)Converts the value of the specified object to its equivalent Unicode character, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToChar(String, IFormatProvider)Converts the first character of a specified string to a Unicode character, using specified culture-specific formatting information.
Public methodStatic memberToDateTime(Boolean)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(Byte)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(Char)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(DateTime)Returns the specified DateTime object; no actual conversion is performed.
Public methodStatic memberToDateTime(Decimal)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(Double)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(Int16)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(Int32)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(Int64)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDateTime(Object)Converts the value of the specified object to a DateTime object.
Public methodStatic memberToDateTime(SByte)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(Single)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDateTime(String)Converts the specified string representation of a date and time to an equivalent date and time value.
Public methodStatic memberToDateTime(UInt16)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(UInt32)Calling this method always throws InvalidCastException.
Public methodStatic memberToDateTime(UInt64)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDateTime(Object, IFormatProvider)Converts the value of the specified object to a DateTime object, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDateTime(String, IFormatProvider)Converts the specified string representation of a number to an equivalent date and time, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Boolean)Converts the specified Boolean value to the equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkToDecimal(Char)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkToDecimal(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Decimal)Returns the specified decimal number; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Double)Converts the value of the specified double-precision floating-point number to an equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Int16)Converts the value of the specified 16-bit signed integer to an equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Int32)Converts the value of the specified 32-bit signed integer to an equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Int64)Converts the value of the specified 64-bit signed integer to an equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Object)Converts the value of the specified object to an equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(SByte)Converts the value of the specified 8-bit signed integer to the equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Single)Converts the value of the specified single-precision floating-point number to the equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(String)Converts the specified string representation of a number to an equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(UInt16)Converts the value of the specified 16-bit unsigned integer to an equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent decimal number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(Object, IFormatProvider)Converts the value of the specified object to an equivalent decimal number, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDecimal(String, IFormatProvider)Converts the specified string representation of a number to an equivalent decimal number, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Boolean)Converts the specified Boolean value to the equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkToDouble(Char)Calling this method always throws InvalidCastException.
Public methodStatic memberToDouble(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Decimal)Converts the value of the specified decimal number to an equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Double)Returns the specified double-precision floating-point number; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Int16)Converts the value of the specified 16-bit signed integer to an equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Int32)Converts the value of the specified 32-bit signed integer to an equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Int64)Converts the value of the specified 64-bit signed integer to an equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Object)Converts the value of the specified object to a double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(SByte)Converts the value of the specified 8-bit signed integer to the equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Single)Converts the value of the specified single-precision floating-point number to an equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(String)Converts the specified string representation of a number to an equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(UInt16)Converts the value of the specified 16-bit unsigned integer to the equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent double-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(Object, IFormatProvider)Converts the value of the specified object to an double-precision floating-point number, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToDouble(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.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Boolean)Converts the specified Boolean value to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Char)Converts the value of the specified Unicode character to the equivalent 16-bit signed integer.
Public methodStatic memberToInt16(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Decimal)Converts the value of the specified decimal number to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Double)Converts the value of the specified double-precision floating-point number to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Int16)Returns the specified 16-bit signed integer; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Int32)Converts the value of the specified 32-bit signed integer to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Int64)Converts the value of the specified 64-bit signed integer to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Object)Converts the value of the specified object to a 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(SByte)Converts the value of the specified 8-bit signed integer to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Single)Converts the value of the specified single-precision floating-point number to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(String)Converts the specified string representation of a number to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(UInt16)Converts the value of the specified 16-bit unsigned integer to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(Object, IFormatProvider)Converts the value of the specified object to a 16-bit signed integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(String, IFormatProvider)Converts the specified string representation of a number to an equivalent 16-bit signed integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt16(String, Int32)Converts the string representation of a number in a specified base to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Boolean)Converts the specified Boolean value to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Char)Converts the value of the specified Unicode character to the equivalent 32-bit signed integer.
Public methodStatic memberToInt32(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Decimal)Converts the value of the specified decimal number to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Double)Converts the value of the specified double-precision floating-point number to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Int16)Converts the value of the specified 16-bit signed integer to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Int32)Returns the specified 32-bit signed integer; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Int64)Converts the value of the specified 64-bit signed integer to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Object)Converts the value of the specified object to a 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(SByte)Converts the value of the specified 8-bit signed integer to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Single)Converts the value of the specified single-precision floating-point number to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(String)Converts the specified string representation of a number to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(UInt16)Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(Object, IFormatProvider)Converts the value of the specified object to a 32-bit signed integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(String, IFormatProvider)Converts the specified string representation of a number to an equivalent 32-bit signed integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt32(String, Int32)Converts the string representation of a number in a specified base to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Boolean)Converts the specified Boolean value to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Char)Converts the value of the specified Unicode character to the equivalent 64-bit signed integer.
Public methodStatic memberToInt64(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Decimal)Converts the value of the specified decimal number to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Double)Converts the value of the specified double-precision floating-point number to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Int16)Converts the value of the specified 16-bit signed integer to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Int32)Converts the value of the specified 32-bit signed integer to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Int64)Returns the specified 64-bit signed integer; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Object)Converts the value of the specified object to a 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(SByte)Converts the value of the specified 8-bit signed integer to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Single)Converts the value of the specified single-precision floating-point number to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(String)Converts the specified string representation of a number to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(UInt16)Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(Object, IFormatProvider)Converts the value of the specified object to a 64-bit signed integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(String, IFormatProvider)Converts the specified string representation of a number to an equivalent 64-bit signed integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToInt64(String, Int32)Converts the string representation of a number in a specified base to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Boolean)Converts the specified Boolean value to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Char)Converts the value of the specified Unicode character to the equivalent 8-bit signed integer.
Public methodStatic memberToSByte(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Decimal)Converts the value of the specified decimal number to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Double)Converts the value of the specified double-precision floating-point number to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Int16)Converts the value of the specified 16-bit signed integer to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Int32)Converts the value of the specified 32-bit signed integer to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Int64)Converts the value of the specified 64-bit signed integer to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Object)Converts the value of the specified object to an 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(SByte)Returns the specified 8-bit signed integer; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Single)Converts the value of the specified single-precision floating-point number to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(String)Converts the specified string representation of a number to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(UInt16)Converts the value of the specified 16-bit unsigned integer to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(Object, IFormatProvider)Converts the value of the specified object to an 8-bit signed integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(String, IFormatProvider)Converts the specified string representation of a number to an equivalent 8-bit signed integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSByte(String, Int32)Converts the string representation of a number in a specified base to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Boolean)Converts the specified Boolean value to the equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkToSingle(Char)Calling this method always throws InvalidCastException.
Public methodStatic memberToSingle(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Decimal)Converts the value of the specified decimal number to an equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Double)Converts the value of the specified double-precision floating-point number to an equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Int16)Converts the value of the specified 16-bit signed integer to an equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Int32)Converts the value of the specified 32-bit signed integer to an equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Int64)Converts the value of the specified 64-bit signed integer to an equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Object)Converts the value of the specified object to a single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(SByte)Converts the value of the specified 8-bit signed integer to the equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Single)Returns the specified single-precision floating-point number; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(String)Converts the specified string representation of a number to an equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(UInt16)Converts the value of the specified 16-bit unsigned integer to the equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent single-precision floating-point number.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(Object, IFormatProvider)Converts the value of the specified object to an single-precision floating-point number, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToSingle(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.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Boolean)Converts the specified Boolean value to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Byte)Converts the value of the specified 8-bit unsigned integer to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Char)Converts the value of the specified Unicode character to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(DateTime)Converts the value of the specified DateTime to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Decimal)Converts the value of the specified decimal number to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Double)Converts the value of the specified double-precision floating-point number to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Int16)Converts the value of the specified 16-bit signed integer to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Int32)Converts the value of the specified 32-bit signed integer to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Int64)Converts the value of the specified 64-bit signed integer to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Object)Converts the value of the specified object to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(SByte)Converts the value of the specified 8-bit signed integer to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Single)Converts the value of the specified single-precision floating-point number to its equivalent string representation.
Public methodStatic memberToString(String)Returns the specified string instance; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(UInt16)Converts the value of the specified 16-bit unsigned integer to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(UInt32)Converts the value of the specified 32-bit unsigned integer to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(UInt64)Converts the value of the specified 64-bit unsigned integer to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Boolean, IFormatProvider)Converts the specified Boolean value to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Byte, IFormatProvider)Converts the value of the specified 8-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Byte, Int32)Converts the value of an 8-bit unsigned integer to its equivalent string representation in a specified base.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Char, IFormatProvider)Converts the value of the specified Unicode character to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(DateTime, IFormatProvider)Converts the value of the specified DateTime to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Decimal, IFormatProvider)Converts the value of the specified decimal number to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Double, IFormatProvider)Converts the value of the specified double-precision floating-point number to its equivalent string representation.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Int16, IFormatProvider)Converts the value of the specified 16-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Int16, Int32)Converts the value of a 16-bit signed integer to its equivalent string representation in a specified base.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Int32, IFormatProvider)Converts the value of the specified 32-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Int32, Int32)Converts the value of a 32-bit signed integer to its equivalent string representation in a specified base.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Int64, IFormatProvider)Converts the value of the specified 64-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Int64, Int32)Converts the value of a 64-bit signed integer to its equivalent string representation in a specified base.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(Object, IFormatProvider)Converts the value of the specified object to its equivalent string representation using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(SByte, IFormatProvider)Converts the value of the specified 8-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(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.
Public methodStatic memberToString(String, IFormatProvider)Returns the specified string instance; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(UInt16, IFormatProvider)Converts the value of the specified 16-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(UInt32, IFormatProvider)Converts the value of the specified 32-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToString(UInt64, IFormatProvider)Converts the value of the specified 64-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Boolean)Converts the specified Boolean value to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Char)Converts the value of the specified Unicode character to the equivalent 16-bit unsigned integer.
Public methodStatic memberToUInt16(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Decimal)Converts the value of the specified decimal number to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Double)Converts the value of the specified double-precision floating-point number to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Int16)Converts the value of the specified 16-bit signed integer to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Int32)Converts the value of the specified 32-bit signed integer to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Int64)Converts the value of the specified 64-bit signed integer to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Object)Converts the value of the specified object to a 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(SByte)Converts the value of the specified 8-bit signed integer to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Single)Converts the value of the specified single-precision floating-point number to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(String)Converts the specified string representation of a number to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(UInt16)Returns the specified 16-bit unsigned integer; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(Object, IFormatProvider)Converts the value of the specified object to a 16-bit unsigned integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(String, IFormatProvider)Converts the specified string representation of a number to an equivalent 16-bit unsigned integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt16(String, Int32)Converts the string representation of a number in a specified base to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Boolean)Converts the specified Boolean value to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Char)Converts the value of the specified Unicode character to the equivalent 32-bit unsigned integer.
Public methodStatic memberToUInt32(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Decimal)Converts the value of the specified decimal number to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Double)Converts the value of the specified double-precision floating-point number to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Int16)Converts the value of the specified 16-bit signed integer to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Int32)Converts the value of the specified 32-bit signed integer to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Int64)Converts the value of the specified 64-bit signed integer to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Object)Converts the value of the specified object to a 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(SByte)Converts the value of the specified 8-bit signed integer to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Single)Converts the value of the specified single-precision floating-point number to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(String)Converts the specified string representation of a number to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(UInt16)Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(UInt32)Returns the specified 32-bit unsigned integer; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(UInt64)Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(Object, IFormatProvider)Converts the value of the specified object to a 32-bit unsigned integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(String, IFormatProvider)Converts the specified string representation of a number to an equivalent 32-bit unsigned integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt32(String, Int32)Converts the string representation of a number in a specified base to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Boolean)Converts the specified Boolean value to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Byte)Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Char)Converts the value of the specified Unicode character to the equivalent 64-bit unsigned integer.
Public methodStatic memberToUInt64(DateTime)Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Decimal)Converts the value of the specified decimal number to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Double)Converts the value of the specified double-precision floating-point number to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Int16)Converts the value of the specified 16-bit signed integer to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Int32)Converts the value of the specified 32-bit signed integer to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Int64)Converts the value of the specified 64-bit signed integer to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Object)Converts the value of the specified object to a 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(SByte)Converts the value of the specified 8-bit signed integer to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Single)Converts the value of the specified single-precision floating-point number to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(String)Converts the specified string representation of a number to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(UInt16)Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(UInt32)Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(UInt64)Returns the specified 64-bit unsigned integer; no actual conversion is performed.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(Object, IFormatProvider)Converts the value of the specified object to a 64-bit unsigned integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(String, IFormatProvider)Converts the specified string representation of a number to an equivalent 64-bit unsigned integer, using the specified culture-specific formatting information.
Public methodStatic memberSupported by the XNA FrameworkSupported by Portable Class LibrarySupported in .NET for Windows Store appsToUInt64(String, Int32)Converts the string representation of a number in a specified base to an equivalent 64-bit unsigned integer.
Top

  NameDescription
Public fieldStatic memberSupported by the XNA FrameworkDBNullA constant that represents a database column that is absent of data; that is, database null.
Top

The static methods of the Convert class are 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.

Conversions to and from Base Types

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.

Conversions from Custom Objects to Base Types

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.

Culture-Specific Formatting Information

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 a null reference (Nothing in Visual Basic) IFormatProvider 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.

Other Conversion Methods

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. Data expressed as base-64 digits can be easily conveyed over data channels that can only transmit 7-bit characters.

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

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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