Convert Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Converts a base data type to another base data type.

Inheritance Hierarchy

System.Object
  System.Convert

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

Syntax

'Declaration
Public NotInheritable Class Convert
public static class Convert

The Convert type exposes the following members.

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ChangeType(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 Silverlight for Windows PhoneSupported by Xbox 360 ChangeType(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 Silverlight for Windows PhoneSupported by Xbox 360 FromBase64CharArray 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.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 FromBase64String Converts the specified String, which encodes binary data as base 64 digits, to an equivalent 8-bit unsigned integer array.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetTypeCode Returns the TypeCode for the specified object.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 IsDBNull Returns an indication whether the specified object is of type DBNull.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBase64CharArray 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 memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBase64String(array<Byte[]) Converts an array of 8-bit unsigned integers to its equivalent String representation encoded with base 64 digits.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBase64String(array<Byte[], Int32, Int32) Converts a subset of an array of 8-bit unsigned integers to its equivalent String representation 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 memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Boolean) Returns the specified Boolean value; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Byte) Converts the value of the specified 8-bit unsigned integer to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Char) Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Decimal) Converts the value of the specified Decimal number to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Double) Converts the value of the specified double-precision floating point number to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Int16) Converts the value of the specified 16-bit signed integer to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Int32) Converts the value of the specified 32-bit signed integer to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Int64) Converts the value of the specified 64-bit signed integer to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Object) Converts the value of a specified Object to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(SByte) Converts the value of the specified 8-bit signed integer to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(Single) Converts the value of the specified single-precision floating point number to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(String) Converts the specified String representation of a logical value to its Boolean equivalent.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(UInt16) Converts the value of the specified 16-bit unsigned integer to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent Boolean value.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(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 Silverlight for Windows PhoneSupported by Xbox 360 ToBoolean(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 Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Boolean) Converts the value of the specified Boolean value to the equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Byte) Returns the specified 8-bit unsigned integer; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Char) Converts the value of the specified Unicode character to the equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Decimal) Converts the value of the specified Decimal number to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Double) Converts the value of the specified double-precision floating point number to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Int16) Converts the value of the specified 16-bit signed integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Int32) Converts the value of the specified 32-bit signed integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Int64) Converts the value of the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Object) Converts the value of the specified Object to an 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(SByte) Converts the value of the specified 8-bit signed integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(Single) Converts the value of the specified single-precision floating point number to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(String) Converts the specified String representation of a number to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(UInt16) Converts the value of the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToByte(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 Silverlight for Windows PhoneSupported by Xbox 360 ToByte(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 Silverlight for Windows PhoneSupported by Xbox 360 ToByte(String, Int32) Converts the string representation of a number in a specified base to an equivalent 8-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(Byte) Converts the value of the specified 8-bit unsigned integer to its equivalent Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(Char) Returns the specified Unicode character value; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(Decimal) Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(Double) Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(Int16) Converts the value of the specified 16-bit signed integer to its equivalent Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(Int32) Converts the value of the specified 32-bit signed integer to its equivalent Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(Int64) Converts the value of the specified 64-bit signed integer to its equivalent Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(Object) Converts the value of the specified Object to a Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(SByte) Converts the value of the specified 8-bit signed integer to its equivalent Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(Single) Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(String) Converts the first character of a String to a Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(UInt16) Converts the value of the specified 16-bit unsigned integer to its equivalent Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(UInt32) Converts the value of the specified 32-bit unsigned integer to its equivalent Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(UInt64) Converts the value of the specified 64-bit unsigned integer to its equivalent Unicode character.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToChar(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 Silverlight for Windows PhoneSupported by Xbox 360 ToChar(String, IFormatProvider) Converts the first character of a String to a Unicode character using specified culture-specific formatting information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDateTime(Object) Converts the value of the specified Object to a DateTime.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDateTime(String) Converts the specified String representation of a date and time to an equivalent DateTime.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDateTime(Object, IFormatProvider) Converts the value of the specified Object to a DateTime using the specified culture-specific formatting information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDateTime(String, IFormatProvider) Converts the specified String representation of a number to an equivalent DateTime using the specified culture-specific formatting information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Boolean) Converts the value of the specified Boolean value to the equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Char) Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(DateTime) Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Decimal) Returns the specified Decimal number; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Double) Converts the value of the specified double-precision floating point number to an equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Int16) Converts the value of the specified 16-bit signed integer to an equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Int32) Converts the value of the specified 32-bit signed integer to an equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Int64) Converts the value of the specified 64-bit signed integer to an equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Object) Converts the value of the specified Object to a Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(SByte) Converts the value of the specified 8-bit signed integer to the equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Single) Converts the value of the specified single-precision floating point number to the equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(String) Converts the specified String representation of a number to an equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent Decimal number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(Object, IFormatProvider) Converts the value of the specified Object to an Decimal number using the specified culture-specific formatting information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDecimal(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 Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Boolean) Converts the value of the specified Boolean value to the equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Char) Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Decimal) Converts the value of the specified Decimal number to an equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Double) Returns the specified double-precision floating point number; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Int16) Converts the value of the specified 16-bit signed integer to an equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Int32) Converts the value of the specified 32-bit signed integer to an equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Int64) Converts the value of the specified 64-bit signed integer to an equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Object) Converts the value of the specified Object to a double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(SByte) Converts the value of the specified 8-bit signed integer to the equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(Single) Converts the value of the specified single-precision floating point number to an equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(String) Converts the specified String representation of a number to an equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent double-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(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 Silverlight for Windows PhoneSupported by Xbox 360 ToDouble(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 Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Boolean) Converts the value of the specified Boolean value to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Char) Converts the value of the specified Unicode character to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Decimal) Converts the value of the specified Decimal number to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Double) Converts the value of the specified double-precision floating point number to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Int16) Returns the specified 16-bit signed integer; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Int32) Converts the value of the specified 32-bit signed integer to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Int64) Converts the value of the specified 64-bit signed integer to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Object) Converts the value of the specified Object to a 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(SByte) Converts the value of the specified 8-bit signed integer to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(Single) Converts the value of the specified single-precision floating point number to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(String) Converts the specified String representation of a number to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(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 Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(String, IFormatProvider) Converts the specified String representation of a number to an equivalent 16-bit signed integer using specified culture-specific formatting information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt16(String, Int32) Converts the string representation of a number in a specified base to an equivalent 16-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Boolean) Converts the value of the specified Boolean value to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Char) Converts the value of the specified Unicode character to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Decimal) Converts the value of the specified Decimal number to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Double) Converts the value of the specified double-precision floating point number to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Int16) Converts the value of the specified 16-bit signed integer to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Int32) Returns the specified 32-bit signed integer; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Int64) Converts the value of the specified 64-bit signed integer to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Object) Converts the value of the specified Object to a 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(SByte) Converts the value of the specified 8-bit signed integer to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(Single) Converts the value of the specified single-precision floating point number to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(String) Converts the specified String representation of a number to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(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 Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(String, IFormatProvider) Converts the specified String representation of a number to an equivalent 32-bit signed integer using specified culture-specific formatting information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt32(String, Int32) Converts the String representation of a number in a specified base to an equivalent 32-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Boolean) Converts the value of the specified Boolean value to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Char) Converts the value of the specified Unicode character to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Decimal) Converts the value of the specified Decimal number to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Double) Converts the value of the specified double-precision floating point number to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Int16) Converts the value of the specified 16-bit signed integer to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Int32) Converts the value of the specified 32-bit signed integer to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Int64) Returns the specified 64-bit signed integer; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Object) Converts the value of the specified Object to a 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(SByte) Converts the value of the specified 8-bit signed integer to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(Single) Converts the value of the specified single-precision floating point number to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(String) Converts the specified String representation of a number to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(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 Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(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 Silverlight for Windows PhoneSupported by Xbox 360 ToInt64(String, Int32) Converts the string representation of a number in a specified base to an equivalent 64-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Boolean) Converts the value of the specified Boolean value to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Char) Converts the value of the specified Unicode character to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Decimal) Converts the value of the specified Decimal number to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Double) Converts the value of the specified double-precision floating point number to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Int16) Converts the value of the specified 16-bit signed integer to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Int32) Converts the value of the specified 32-bit signed integer to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Int64) Converts the value of the specified 64-bit signed integer to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Object) Converts the value of the specified Object to an 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(SByte) Returns the specified 8-bit signed integer; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(Single) Converts the value of the specified single-precision floating point number to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(String) Converts the specified String representation of a number to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(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 Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(String, IFormatProvider) Converts the specified String representation of a number to an equivalent 8-bit signed integer using specified culture-specific formatting information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSByte(String, Int32) Converts the string representation of a number in a specified base to an equivalent 8-bit signed integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Boolean) Converts the value of the specified Boolean value to the equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Char) Calling this method always throws InvalidCastException.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Decimal) Converts the value of the specified Decimal number to an equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Double) Converts the value of the specified double-precision floating point number to an equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Int16) Converts the value of the specified 16-bit signed integer to an equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Int32) Converts the value of the specified 32-bit signed integer to an equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Int64) Converts the value of the specified 64-bit signed integer to an equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Object) Converts the value of the specified Object to a single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(SByte) Converts the value of the specified 8-bit signed integer to the equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(Single) Returns the specified single-precision floating point number; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(String) Converts the specified String representation of a number to an equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent single-precision floating point number.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(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 Silverlight for Windows PhoneSupported by Xbox 360 ToSingle(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 Silverlight for Windows PhoneSupported by Xbox 360 ToString(Boolean) Converts the value of the specified Boolean to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Byte) Converts the value of the specified 8-bit unsigned integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Char) Converts the value of the specified Unicode character to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(DateTime) Converts the value of the specified DateTime to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Decimal) Converts the value of the specified Decimal number to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Double) Converts the value of the specified double-precision floating point number to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Int16) Converts the value of the specified 16-bit signed integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Int32) Converts the value of the specified 32-bit signed integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Int64) Converts the value of the specified 64-bit signed integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Object) Converts the value of the specified Object to its String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(SByte) Converts the value of the specified 8-bit signed integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Single) Converts the value of the specified single-precision floating point number to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(UInt16) Converts the value of the specified 16-bit unsigned integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(UInt32) Converts the value of the specified 32-bit unsigned integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(UInt64) Converts the value of the specified 64-bit unsigned integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Boolean, IFormatProvider) Converts the value of the specified Boolean to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Byte, IFormatProvider) Converts the value of the specified 8-bit unsigned integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Byte, Int32) Converts the value of an 8-bit unsigned integer to its equivalent string representation in a specified base.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Char, IFormatProvider) Converts the value of the specified Unicode character to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(DateTime, IFormatProvider) Converts the value of the specified DateTime to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Decimal, IFormatProvider) Converts the value of the specified Decimal number to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Double, IFormatProvider) Converts the value of the specified double-precision floating point number to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Int16, IFormatProvider) Converts the value of the specified 16-bit signed integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Int16, Int32) Converts the value of a 16-bit signed integer to its equivalent String representation in a specified base.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Int32, IFormatProvider) Converts the value of the specified 32-bit signed integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Int32, Int32) Converts the value of a 32-bit signed integer to its equivalent String representation in a specified base.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Int64, IFormatProvider) Converts the value of the specified 64-bit signed integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Int64, Int32) Converts the value of a 64-bit signed integer to its equivalent String representation in a specified base.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(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 Silverlight for Windows PhoneSupported by Xbox 360 ToString(SByte, IFormatProvider) Converts the value of the specified 8-bit signed integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(Single, IFormatProvider) Converts the value of the specified single-precision floating point number to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(UInt16, IFormatProvider) Converts the value of the specified 16-bit unsigned integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(UInt32, IFormatProvider) Converts the value of the specified 32-bit unsigned integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToString(UInt64, IFormatProvider) Converts the value of the specified 64-bit unsigned integer to its equivalent String representation.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Boolean) Converts the value of the specified Boolean value to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Char) Converts the value of the specified Unicode character to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Decimal) Converts the value of the specified Decimal number to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Double) Converts the value of the specified double-precision floating point number to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Int16) Converts the value of the specified 16-bit signed integer to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Int32) Converts the value of the specified 32-bit signed integer to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Int64) Converts the value of the specified 64-bit signed integer to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Object) Converts the value of the specified Object to a 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(SByte) Converts the value of the specified 8-bit signed integer to the equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(Single) Converts the value of the specified single-precision floating point number to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(String) Converts the specified String representation of a number to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(UInt16) Returns the specified 16-bit unsigned integer; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(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 Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(String, IFormatProvider) Converts the specified String representation of a number to an equivalent 16-bit unsigned integer using specified culture-specific formatting information.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt16(String, Int32) Converts the string representation of a number in a specified base to an equivalent 16-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Boolean) Converts the value of the specified Boolean value to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Char) Converts the value of the specified Unicode character to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Decimal) Converts the value of the specified Decimal number to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Double) Converts the value of the specified double-precision floating point number to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Int16) Converts the value of the specified 16-bit signed integer to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Int32) Converts the value of the specified 32-bit signed integer to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Int64) Converts the value of the specified 64-bit signed integer to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Object) Converts the value of the specified Object to a 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(SByte) Converts the value of the specified 8-bit signed integer to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(Single) Converts the value of the specified single-precision floating point number to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(String) Converts the specified String representation of a number to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(UInt32) Returns the specified 32-bit unsigned integer; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(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 Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(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 Silverlight for Windows PhoneSupported by Xbox 360 ToUInt32(String, Int32) Converts the string representation of a number in a specified base to an equivalent 32-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Boolean) Converts the value of the specified Boolean value to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Char) Converts the value of the specified Unicode character to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Decimal) Converts the value of the specified Decimal number to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Double) Converts the value of the specified double-precision floating point number to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Int16) Converts the value of the specified 16-bit signed integer to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Int32) Converts the value of the specified 32-bit signed integer to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Int64) Converts the value of the specified 64-bit signed integer to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Object) Converts the value of the specified Object to a 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(SByte) Converts the value of the specified 8-bit signed integer to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(Single) Converts the value of the specified single-precision floating point number to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(String) Converts the specified String representation of a number to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit unsigned integer.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(UInt64) Returns the specified 64-bit unsigned integer; no actual conversion is performed.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(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 Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(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 Silverlight for Windows PhoneSupported by Xbox 360 ToUInt64(String, Int32) Converts the string representation of a number in a specified base to an equivalent 64-bit unsigned integer.

Top

Fields

  Name Description
Public fieldStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 DBNull A constant representing a database column absent of data; that is, database null.

Top

Remarks

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 value 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 for Silverlight.

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:

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

Examples

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

Dim dNumber As Double
dNumber = 23.15

Try
   ' Returns 23
   Dim iNumber As Integer
   iNumber = System.Convert.ToInt32(dNumber)
Catch exp As System.OverflowException
   outputBlock.Text &= "Overflow in double to int conversion." & vbCrLf
End Try

' Returns True
Dim bNumber As Boolean
bNumber = System.Convert.ToBoolean(dNumber)

' Returns "23.15"
Dim strNumber As String
strNumber = System.Convert.ToString(dNumber)

Try
   ' Returns '2'
   Dim chrNumber As Char
   chrNumber = System.Convert.ToChar(strNumber.Chars(1))
Catch exp As System.ArgumentNullException
   outputBlock.Text &= "String is null." & vbCrLf
Catch exp As System.FormatException
   outputBlock.Text &= "String length is greater than 1." & vbCrLf
End Try

' System.Console.ReadLine() returns a string and it
' must be converted.
Dim newInteger As Integer
newInteger = 0
Try
   outputBlock.Text &= "Enter an integer:" & vbCrLf
   newInteger = System.Convert.ToInt32(System.Console.ReadLine())
Catch exp As System.ArgumentNullException
   outputBlock.Text &= "String is null." & vbCrLf
Catch exp As System.FormatException
   outputBlock.Text &= "String does not consist of an " + _
       "optional sign followed by a series of digits." & vbCrLf
Catch exp As System.OverflowException
   outputBlock.Text &= "Overflow in string to int conversion." & vbCrLf
End Try

outputBlock.Text &= String.Format("Your integer as a double is {0}", _
                         System.Convert.ToDouble(newInteger)) & vbCrLf
double dNumber = 23.15;

try
{
   // Returns 23
   int iNumber = System.Convert.ToInt32(dNumber);
}
catch (System.OverflowException)
{
   outputBlock.Text +=
            "Overflow in double to int conversion." + "\n";
}
// 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)
{
   outputBlock.Text += "String is null" + "\n";
}
catch (System.FormatException)
{
   outputBlock.Text += "String length is greater than 1." + "\n";
}

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

outputBlock.Text += String.Format("Your integer as a double is {0}",
                   System.Convert.ToDouble(newInteger)) + "\n";

The following code example demonstrates several of the conversion methods in the Convert class.

' Sample for the Convert class summary.

Class Example
   Public Shared Sub Demo(ByVal outputBlock As System.Windows.Controls.TextBlock)
      Dim nl As String = vbCrLf
      Dim str As String = "{0}Return the Int64 equivalent of the following base types:{0}"
      Dim xBool As Boolean = False
      Dim xShort As Short = 1
      Dim xInt As Integer = 2
      Dim xLong As Long = 3
      Dim xSingle As Single = 4.0F
      Dim xDouble As Double = 5.0
      Dim xDecimal As Decimal = 6D
      Dim xString As String = "7"
      Dim xChar As Char = "8"c ' '8' = hexadecimal 38 = decimal 56
      Dim xByte As Byte = 9

      '  The following types are not CLS-compliant.
      ' Dim xUshort As System.UInt16 = 120
      ' Dim xUint As System.UInt32 = 121
      ' Dim xUlong As System.UInt64 = 122
      ' Dim xSbyte As System.SByte = 123

      '  The following type cannot be converted to an Int64.
      '  Dim xDateTime As System.DateTime = DateTime.Now

      outputBlock.Text &= String.Format(str, nl) & vbCrLf
      outputBlock.Text &= String.Format("Boolean:  {0}", Convert.ToInt64(xBool)) & vbCrLf
      outputBlock.Text &= String.Format("Int16:    {0}", Convert.ToInt64(xShort)) & vbCrLf
      outputBlock.Text &= String.Format("Int32:    {0}", Convert.ToInt64(xInt)) & vbCrLf
      outputBlock.Text &= String.Format("Int64:    {0}", Convert.ToInt64(xLong)) & vbCrLf
      outputBlock.Text &= String.Format("Single:   {0}", Convert.ToInt64(xSingle)) & vbCrLf
      outputBlock.Text &= String.Format("Double:   {0}", Convert.ToInt64(xDouble)) & vbCrLf
      outputBlock.Text &= String.Format("Decimal:  {0}", Convert.ToInt64(xDecimal)) & vbCrLf
      outputBlock.Text &= String.Format("String:   {0}", Convert.ToInt64(xString)) & vbCrLf
      outputBlock.Text &= String.Format("Char:     {0}", Convert.ToInt64(xChar)) & vbCrLf
      outputBlock.Text &= String.Format("Byte:     {0}", Convert.ToInt64(xByte)) & vbCrLf
      outputBlock.Text &= "DateTime: There is no example of this conversion because" & vbCrLf
      outputBlock.Text &= "          a DateTime cannot be converted to an Int64." & vbCrLf
      '
      outputBlock.Text &= String.Format("{0}The following types are not supported: ", nl)
      outputBlock.Text &= String.Format("UInt16, UInt32, UInt64, and SByte") & vbCrLf
   End Sub 'Main
End Class 'Sample
'
'This example produces the following results:
'
'Return the Int64 equivalent of the following base types:
'
'Boolean:  0
'Int16:    1
'Int32:    2
'Int64:    3
'Single:   4
'Double:   5
'Decimal:  6
'String:   7
'Char:     56
'Byte:     9
'DateTime: There is no example of this conversion because
'          a DateTime cannot be converted to an Int64.
'
'The following types are not supported: UInt16, UInt32, UInt64, and SByte
'
// Sample for the Convert class summary.
using System;

class Example
{
   public static void Demo(System.Windows.Controls.TextBlock outputBlock)
   {
      string nl = "\n";
      string str = "{0}Return the Int64 equivalent of the following base types:{0}";
      bool xBool = false;
      short xShort = 1;
      int xInt = 2;
      long xLong = 3;
      float xSingle = 4.0f;
      double xDouble = 5.0;
      decimal xDecimal = 6.0m;
      string xString = "7";
      char xChar = '8'; // '8' = hexadecimal 38 = decimal 56
      byte xByte = 9;

      //  The following types are not CLS-compliant.
      ushort xUshort = 120;
      uint xUint = 121;
      ulong xUlong = 122;
      sbyte xSbyte = 123;

      //  The following type cannot be converted to an Int64.
      //  DateTime xDateTime = DateTime.Now;

      outputBlock.Text += String.Format(str, nl) + "\n";
      outputBlock.Text += String.Format("Boolean:  {0}", Convert.ToInt64(xBool)) + "\n";
      outputBlock.Text += String.Format("Int16:    {0}", Convert.ToInt64(xShort)) + "\n";
      outputBlock.Text += String.Format("Int32:    {0}", Convert.ToInt64(xInt)) + "\n";
      outputBlock.Text += String.Format("Int64:    {0}", Convert.ToInt64(xLong)) + "\n";
      outputBlock.Text += String.Format("Single:   {0}", Convert.ToInt64(xSingle)) + "\n";
      outputBlock.Text += String.Format("Double:   {0}", Convert.ToInt64(xDouble)) + "\n";
      outputBlock.Text += String.Format("Decimal:  {0}", Convert.ToInt64(xDecimal)) + "\n";
      outputBlock.Text += String.Format("String:   {0}", Convert.ToInt64(xString)) + "\n";
      outputBlock.Text += String.Format("Char:     {0}", Convert.ToInt64(xChar)) + "\n";
      outputBlock.Text += String.Format("Byte:     {0}", Convert.ToInt64(xByte)) + "\n";
      outputBlock.Text += "DateTime: There is no example of this conversion because" + "\n";
      outputBlock.Text += "          a DateTime cannot be converted to an Int64." + "\n";
      //
      outputBlock.Text += String.Format("{0}The following types are not CLS-compliant.{0}", nl) + "\n";
      outputBlock.Text += String.Format("UInt16:   {0}", Convert.ToInt64(xUshort)) + "\n";
      outputBlock.Text += String.Format("UInt32:   {0}", Convert.ToInt64(xUint)) + "\n";
      outputBlock.Text += String.Format("UInt64:   {0}", Convert.ToInt64(xUlong)) + "\n";
      outputBlock.Text += String.Format("SByte:    {0}", Convert.ToInt64(xSbyte)) + "\n";
   }
}
/*
This example produces the following results:

Return the Int64 equivalent of the following base types:

Boolean:  0
Int16:    1
Int32:    2
Int64:    3
Single:   4
Double:   5
Decimal:  6
String:   7
Char:     56
Byte:     9
DateTime: There is no example of this conversion because
          a DateTime cannot be converted to an Int64.

The following types are not CLS-compliant.

UInt16:   120
UInt32:   121
UInt64:   122
SByte:    123
*/

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

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