Convert Members
The Convert type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
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.
|
![]() ![]() |
FromBase64String |
Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.
|
![]() ![]() |
ToBase64CharArray(array<Byte>[]()[][], Int32, Int32, array<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.
|
![]() ![]() |
ToBase64CharArray(array<Byte>[]()[][], Int32, Int32, array<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.
|
![]() ![]() |
ToBase64String(array<Byte>[]()[][]) |
Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits.
|
![]() ![]() |
ToBase64String(array<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.
|
![]() ![]() |
ToBase64String(array<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.
|
![]() ![]() |
ToBase64String(array<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.
|
![]() ![]() |
ToBoolean(Object) |
Converts the value of a specified object to an equivalent Boolean value.
Note: Calling this method for [char] and [DateTime] values always throws InvalidCastException.
|
![]() ![]() |
ToBoolean(Object, IFormatProvider) |
Converts the value of the specified object to an equivalent Boolean value, using the specified culture-specific formatting information.
Note: Calling this method for [char] and [DateTime] values always throws InvalidCastException.
|
![]() ![]() |
ToByte(Object) |
Converts the value of the specified object to an 8-bit unsigned integer.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToByte(Object, IFormatProvider) |
Converts the value of the specified object to an 8-bit unsigned integer, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToByte(String, Int32) |
Converts the string representation of a number in a specified base to an equivalent 8-bit unsigned integer.
|
![]() ![]() |
ToChar(Object) |
Converts the value of the specified object to a Unicode character.
Note: Calling this method for [bool], [float], [double], [decimal] and [DateTime] values always throws InvalidCastException.
|
![]() ![]() |
ToChar(Object, IFormatProvider) |
Converts the value of the specified object to its equivalent Unicode character, using the specified culture-specific formatting information.
Note: Calling this method for [bool], [float], [double], [decimal] and [DateTime] values always throws InvalidCastException.
|
![]() ![]() |
ToChar(Boolean) |
Calling this method always throws InvalidCastException.
|
![]() ![]() |
ToChar(Char) |
Returns the specified Unicode character value; no actual conversion is performed.
|
![]() ![]() |
ToChar(SByte) |
Converts the value of the specified 8-bit signed integer to its equivalent Unicode character.
|
![]() ![]() |
ToChar(Byte) |
Converts the value of the specified 8-bit unsigned integer to its equivalent Unicode character.
|
![]() ![]() |
ToChar(Int16) |
Converts the value of the specified 16-bit signed integer to its equivalent Unicode character.
|
![]() ![]() |
ToChar(UInt16) |
Converts the value of the specified 16-bit unsigned integer to its equivalent Unicode character.
|
![]() ![]() |
ToChar(Int32) |
Converts the value of the specified 32-bit signed integer to its equivalent Unicode character.
|
![]() ![]() |
ToChar(UInt32) |
Converts the value of the specified 32-bit unsigned integer to its equivalent Unicode character.
|
![]() ![]() |
ToChar(Int64) |
Converts the value of the specified 64-bit signed integer to its equivalent Unicode character.
|
![]() ![]() |
ToChar(UInt64) |
Converts the value of the specified 64-bit unsigned integer to its equivalent Unicode character.
|
![]() ![]() |
ToChar(String) |
Converts the value of the specified object to a Unicode character.
|
![]() ![]() |
ToChar(String, IFormatProvider) |
Converts the value of the specified object to its equivalent Unicode character, using the specified culture-specific formatting information.
|
![]() ![]() |
ToChar(Single) |
Calling this method always throws InvalidCastException.
|
![]() ![]() |
ToChar(Double) |
Calling this method always throws InvalidCastException.
|
![]() ![]() |
ToChar(Decimal) |
Calling this method always throws InvalidCastException.
|
![]() ![]() |
ToChar(DateTime) |
Calling this method always throws InvalidCastException.
|
![]() ![]() |
ToDateTime(Object) |
Converts the value of the specified object to a DateTime object.
Note: Calling this method for built-in types (except [DateTime], [string]) always throws InvalidCastException.
|
![]() ![]() |
ToDateTime(Object, IFormatProvider) |
Converts the value of the specified object to a DateTime object, using the specified culture-specific formatting information.
Note: Calling this method for built-in types (except [DateTime], [string]) always throws InvalidCastException.
|
![]() ![]() |
ToDecimal(Object) |
Converts the value of the specified object to an equivalent decimal number.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToDecimal(Object, IFormatProvider) |
Converts the value of the specified object to an equivalent decimal number, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToDouble(Object) |
Converts the value of the specified object to a double-precision floating-point number.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToDouble(Object, IFormatProvider) |
Converts the value of the specified object to an double-precision floating-point number, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToInt16(Object) |
Converts the value of the specified object to a 16-bit signed integer.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToInt16(Object, IFormatProvider) |
Converts the value of the specified object to a 16-bit signed integer, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToInt16(String, Int32) |
Converts the string representation of a number in a specified base to an equivalent 16-bit signed integer.
|
![]() ![]() |
ToInt32(Object) |
Converts the value of the specified object to a 32-bit signed integer.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToInt32(Object, IFormatProvider) |
Converts the value of the specified object to a 32-bit signed integer, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToInt32(String, Int32) |
Converts the string representation of a number in a specified base to an equivalent 32-bit signed integer.
|
![]() ![]() |
ToInt64(Object) |
Converts the value of the specified object to a 64-bit signed integer.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToInt64(Object, IFormatProvider) |
Converts the value of the specified object to a 64-bit signed integer, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToInt64(String, Int32) |
Converts the string representation of a number in a specified base to an equivalent 64-bit signed integer.
|
![]() ![]() |
ToSByte(Object) |
Converts the value of the specified object to an 8-bit signed integer.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToSByte(Object, IFormatProvider) |
Converts the value of the specified object to an 8-bit signed integer, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToSByte(String) |
Converts the value of the specified object to an 8-bit signed integer.
|
![]() ![]() |
ToSByte(String, IFormatProvider) |
Converts the value of the specified object to an 8-bit signed integer, using the specified culture-specific formatting information.
|
![]() ![]() |
ToSByte(String, Int32) |
Converts the string representation of a number in a specified base to an equivalent 8-bit signed integer.
|
![]() ![]() |
ToSingle(Object) |
Converts the value of the specified object to a single-precision floating-point number.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToSingle(Object, IFormatProvider) |
Converts the value of the specified object to an single-precision floating-point number, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToString(Object) |
Converts the value of the specified object to its equivalent string representation.
|
![]() ![]() |
ToString(Object, IFormatProvider) |
Converts the value of the specified object to its equivalent string representation using the specified culture-specific formatting information.
|
![]() ![]() |
ToString(Char) |
Converts the value of the specified object to its equivalent string representation.
|
![]() ![]() |
ToString(Char, IFormatProvider) |
Converts the value of the specified object to its equivalent string representation using the specified culture-specific formatting information.
|
![]() ![]() |
ToString(Byte, Int32) |
Converts the value of an 8-bit unsigned integer to its equivalent string representation in a specified base.
|
![]() ![]() |
ToString(Int16, Int32) |
Converts the value of a 16-bit signed integer to its equivalent string representation in a specified base.
|
![]() ![]() |
ToString(Int32, Int32) |
Converts the value of a 32-bit signed integer to its equivalent string representation in a specified base.
|
![]() ![]() |
ToString(Int64, Int32) |
Converts the value of a 64-bit signed integer to its equivalent string representation in a specified base.
|
![]() ![]() |
ToUInt16(Object) |
Converts the value of the specified object to a 16-bit unsigned integer.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToUInt16(Object, IFormatProvider) |
Converts the value of the specified object to a 16-bit unsigned integer, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToUInt16(String, Int32) |
Converts the string representation of a number in a specified base to an equivalent 16-bit unsigned integer.
|
![]() ![]() |
ToUInt32(Object) |
Converts the value of the specified object to a 32-bit unsigned integer.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToUInt32(Object, IFormatProvider) |
Converts the value of the specified object to a 32-bit unsigned integer, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToUInt32(String, Int32) |
Converts the string representation of a number in a specified base to an equivalent 32-bit unsigned integer.
|
![]() ![]() |
ToUInt64(Object) |
Converts the value of the specified object to a 64-bit unsigned integer.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToUInt64(Object, IFormatProvider) |
Converts the value of the specified object to a 64-bit unsigned integer, using the specified culture-specific formatting information.
Note: Calling this method for [DateTime] value always throws InvalidCastException.
|
![]() ![]() |
ToUInt64(String, Int32) |
Converts the string representation of a number in a specified base to an equivalent 64-bit unsigned integer.
|