class Convert

in global :: System

Converts a base data type to another base data type.


public static object ChangeType( object value, Type conversionType )

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

  • value An object that implements the interface.
  • conversionType The type of object to return.
  • Returns An object whose type is and whose value is equivalent to . -or- A null reference ( in Visual Basic), if is and is not a value type.

public static object ChangeType( object value, Type conversionType, IFormatProvider provider )

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

  • value An object that implements the interface.
  • conversionType The type of object to return.
  • provider An object that supplies culture-specific formatting information.
  • Returns An object whose type is and whose value is equivalent to . -or- , if the of and are equal. -or- A null reference ( in Visual Basic), if is and is not a value type.

public static object ChangeType( object value, TypeCode typeCode )

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

  • value An object that implements the interface.
  • typeCode The type of object to return.
  • Returns An object whose underlying type is and whose value is equivalent to . -or- A null reference ( in Visual Basic), if is and is , , or .

public static object ChangeType( object value, TypeCode typeCode, IFormatProvider provider )

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

  • value An object that implements the interface.
  • typeCode The type of object to return.
  • provider An object that supplies culture-specific formatting information.
  • Returns An object whose underlying type is and whose value is equivalent to . -or- A null reference ( in Visual Basic), if is and is , , or .

public static object DBNull

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

public static byte[] FromBase64CharArray( char[] inArray, int offset, int length )

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.

  • inArray A Unicode character array.
  • offset A position within .
  • length The number of elements in to convert.
  • Returns An array of 8-bit unsigned integers equivalent to elements at position in .

public static byte[] FromBase64String( string s )

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

  • s The string to convert.
  • Returns An array of 8-bit unsigned integers that is equivalent to .

public static TypeCode GetTypeCode( object value )

Returns the for the specified object.

  • value An object that implements the interface.
  • Returns The for , or if is .

public static bool IsDBNull( object value )

Returns an indication whether the specified object is of type .

  • value An object.
  • Returns if is of type ; otherwise, .

public static int ToBase64CharArray( byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut )

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.

  • inArray An input array of 8-bit unsigned integers.
  • offsetIn A position within .
  • length The number of elements of to convert.
  • outArray An output array of Unicode characters.
  • offsetOut A position within .
  • Returns A 32-bit signed integer containing the number of bytes in .

public static int ToBase64CharArray( byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut, Base64FormattingOptions options )

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.

  • inArray An input array of 8-bit unsigned integers.
  • offsetIn A position within .
  • length The number of elements of to convert.
  • outArray An output array of Unicode characters.
  • offsetOut A position within .
  • options to insert a line break every 76 characters, or to not insert line breaks.
  • Returns A 32-bit signed integer containing the number of bytes in .

public static string ToBase64String( byte[] inArray )

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

  • inArray An array of 8-bit unsigned integers.
  • Returns The string representation, in base 64, of the contents of .

public static string ToBase64String( byte[] inArray, Base64FormattingOptions options )

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.

  • inArray An array of 8-bit unsigned integers.
  • options to insert a line break every 76 characters, or to not insert line breaks.
  • Returns The string representation in base 64 of the elements in .

public static string ToBase64String( byte[] inArray, int offset, int length )

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.

  • inArray An array of 8-bit unsigned integers.
  • offset An offset in .
  • length The number of elements of to convert.
  • Returns The string representation in base 64 of elements of , starting at position .

public static string ToBase64String( byte[] inArray, int offset, int length, Base64FormattingOptions options )

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.

  • inArray An array of 8-bit unsigned integers.
  • offset An offset in .
  • length The number of elements of to convert.
  • options to insert a line break every 76 characters, or to not insert line breaks.
  • Returns The string representation in base 64 of elements of , starting at position .

public static bool ToBoolean( bool value )

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

  • value The Boolean value to return.
  • Returns is returned unchanged.

public static bool ToBoolean( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( char value )

Calling this method always throws .

  • value The Unicode character to convert.
  • Returns This conversion is not supported. No value is returned.

public static bool ToBoolean( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static bool ToBoolean( decimal value )

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

  • value The number to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( object value )

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

  • value An object that implements the interface, or .
  • Returns or , which reflects the value returned by invoking the method for the underlying type of . If is , the method returns .

public static bool ToBoolean( object value, IFormatProvider provider )

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

  • value An object that implements the interface, or .
  • provider An object that supplies culture-specific formatting information.
  • Returns or , which reflects the value returned by invoking the method for the underlying type of . If is , the method returns .

public static bool ToBoolean( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( string value )

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

  • value A string that contains the value of either or .
  • Returns if equals , or if equals or .

public static bool ToBoolean( string value, IFormatProvider provider )

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

  • value A string that contains the value of either or .
  • provider An object that supplies culture-specific formatting information. This parameter is ignored.
  • Returns if equals , or if equals or .

public static bool ToBoolean( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns if is not zero; otherwise, .

public static bool ToBoolean( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns if is not zero; otherwise, .

public static byte ToByte( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static byte ToByte( byte value )

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

  • value The 8-bit unsigned integer to return.
  • Returns is returned unchanged.

public static byte ToByte( char value )

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

  • value The Unicode character to convert.
  • Returns An 8-bit unsigned integer that is equivalent to .

public static byte ToByte( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static byte ToByte( decimal value )

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

  • value The number to convert.
  • Returns , rounded to the nearest 8-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static byte ToByte( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns , rounded to the nearest 8-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static byte ToByte( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns An 8-bit unsigned integer that is equivalent to .

public static byte ToByte( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns An 8-bit unsigned integer that is equivalent to .

public static byte ToByte( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns An 8-bit unsigned integer that is equivalent to .

public static byte ToByte( object value )

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

  • value An object that implements the interface, or .
  • Returns An 8-bit unsigned integer that is equivalent to , or zero if is .

public static byte ToByte( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns An 8-bit unsigned integer that is equivalent to , or zero if is .

public static byte ToByte( sbyte value )

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

  • value The 8-bit signed integer to be converted.
  • Returns An 8-bit unsigned integer that is equivalent to .

public static byte ToByte( float value )

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

  • value A single-precision floating-point number.
  • Returns , rounded to the nearest 8-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static byte ToByte( string value )

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

  • value A string that contains the number to convert.
  • Returns An 8-bit unsigned integer that is equivalent to , or zero if is .

public static byte ToByte( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns An 8-bit unsigned integer that is equivalent to , or zero if is .

public static byte ToByte( string value, int fromBase )

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

  • value A string that contains the number to convert.
  • fromBase The base of the number in , which must be 2, 8, 10, or 16.
  • Returns An 8-bit unsigned integer that is equivalent to the number in , or 0 (zero) if is .

public static byte ToByte( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns An 8-bit unsigned integer that is equivalent to .

public static byte ToByte( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns An 8-bit unsigned integer that is equivalent to .

public static byte ToByte( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns An 8-bit unsigned integer that is equivalent to .

public static char ToChar( bool value )

Calling this method always throws .

  • value The Boolean value to convert.
  • Returns This conversion is not supported. No value is returned.

public static char ToChar( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns A Unicode character that is equivalent to .

public static char ToChar( char value )

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

  • value The Unicode character to return.
  • Returns is returned unchanged.

public static char ToChar( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static char ToChar( decimal value )

Calling this method always throws .

  • value The decimal number to convert.
  • Returns This conversion is not supported. No value is returned.

public static char ToChar( double value )

Calling this method always throws .

  • value The double-precision floating-point number to convert.
  • Returns This conversion is not supported. No value is returned.

public static char ToChar( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns A Unicode character that is equivalent to .

public static char ToChar( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns A Unicode character that is equivalent to .

public static char ToChar( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns A Unicode character that is equivalent to .

public static char ToChar( object value )

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

  • value An object that implements the interface.
  • Returns A Unicode character that is equivalent to value, or if is .

public static char ToChar( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A Unicode character that is equivalent to , or if is .

public static char ToChar( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns A Unicode character that is equivalent to .

public static char ToChar( float value )

Calling this method always throws .

  • value The single-precision floating-point number to convert.
  • Returns This conversion is not supported. No value is returned.

public static char ToChar( string value )

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

  • value A string of length 1.
  • Returns A Unicode character that is equivalent to the first and only character in .

public static char ToChar( string value, IFormatProvider provider )

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

  • value A string of length 1 or .
  • provider An object that supplies culture-specific formatting information. This parameter is ignored.
  • Returns A Unicode character that is equivalent to the first and only character in .

public static char ToChar( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns A Unicode character that is equivalent to .

public static char ToChar( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns A Unicode character that is equivalent to .

public static char ToChar( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns A Unicode character that is equivalent to .

public static DateTime ToDateTime( bool value )

Calling this method always throws .

  • value The Boolean value to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( byte value )

Calling this method always throws .

  • value The 8-bit unsigned integer to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( char value )

Calling this method always throws .

  • value The Unicode character to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( DateTime value )

Returns the specified object; no actual conversion is performed.

  • value A date and time value.
  • Returns is returned unchanged.

public static DateTime ToDateTime( decimal value )

Calling this method always throws .

  • value The number to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( double value )

Calling this method always throws .

  • value The double-precision floating-point value to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( short value )

Calling this method always throws .

  • value The 16-bit signed integer to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( int value )

Calling this method always throws .

  • value The 32-bit signed integer to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( long value )

Calling this method always throws .

  • value The 64-bit signed integer to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( object value )

Converts the value of the specified object to a object.

  • value An object that implements the interface, or .
  • Returns The date and time equivalent of the value of , or a date and time equivalent of if is .

public static DateTime ToDateTime( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns The date and time equivalent of the value of , or the date and time equivalent of if is .

public static DateTime ToDateTime( sbyte value )

Calling this method always throws .

  • value The 8-bit signed integer to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( float value )

Calling this method always throws .

  • value The single-precision floating-point value to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( string value )

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

  • value The string representation of a date and time.
  • Returns The date and time equivalent of the value of , or the date and time equivalent of if is .

public static DateTime ToDateTime( string value, IFormatProvider provider )

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

  • value A string that contains a date and time to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The date and time equivalent of the value of , or the date and time equivalent of if is .

public static DateTime ToDateTime( ushort value )

Calling this method always throws .

  • value The 16-bit unsigned integer to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( uint value )

Calling this method always throws .

  • value The 32-bit unsigned integer to convert.
  • Returns This conversion is not supported. No value is returned.

public static DateTime ToDateTime( ulong value )

Calling this method always throws .

  • value The 64-bit unsigned integer to convert.
  • Returns This conversion is not supported. No value is returned.

public static decimal ToDecimal( bool value )

Converts the specified Boolean value to the equivalent decimal number.

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static decimal ToDecimal( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns The decimal number that is equivalent to .

public static decimal ToDecimal( char value )

Calling this method always throws .

  • value The Unicode character to convert.
  • Returns This conversion is not supported. No value is returned.

public static decimal ToDecimal( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static decimal ToDecimal( decimal value )

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

  • value A decimal number.
  • Returns is returned unchanged.

public static decimal ToDecimal( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns A decimal number that is equivalent to .

public static decimal ToDecimal( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns A decimal number that is equivalent to .

public static decimal ToDecimal( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns A decimal number that is equivalent to .

public static decimal ToDecimal( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns A decimal number that is equivalent to .

public static decimal ToDecimal( object value )

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

  • value An object that implements the interface, or .
  • Returns A decimal number that is equivalent to , or 0 (zero) if is .

public static decimal ToDecimal( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A decimal number that is equivalent to , or 0 (zero) if is .

public static decimal ToDecimal( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns A decimal number that is equivalent to .

public static decimal ToDecimal( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns A decimal number that is equivalent to .

public static decimal ToDecimal( string value )

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

  • value A string that contains a number to convert.
  • Returns A decimal number that is equivalent to the number in , or 0 (zero) if is .

public static decimal ToDecimal( string value, IFormatProvider provider )

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

  • value A string that contains a number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns A decimal number that is equivalent to the number in , or 0 (zero) if is .

public static decimal ToDecimal( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns The decimal number that is equivalent to .

public static decimal ToDecimal( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns A decimal number that is equivalent to .

public static decimal ToDecimal( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns A decimal number that is equivalent to .

public static double ToDouble( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static double ToDouble( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns The double-precision floating-point number that is equivalent to .

public static double ToDouble( char value )

Calling this method always throws .

  • value The Unicode character to convert.
  • Returns This conversion is not supported. No value is returned.

public static double ToDouble( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static double ToDouble( decimal value )

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

  • value The decimal number to convert.
  • Returns A double-precision floating-point number that is equivalent to .

public static double ToDouble( double value )

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

  • value The double-precision floating-point number to return.
  • Returns is returned unchanged.

public static double ToDouble( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns A double-precision floating-point number equivalent to .

public static double ToDouble( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns A double-precision floating-point number that is equivalent to .

public static double ToDouble( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns A double-precision floating-point number that is equivalent to .

public static double ToDouble( object value )

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

  • value An object that implements the interface, or .
  • Returns A double-precision floating-point number that is equivalent to , or zero if is .

public static double ToDouble( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A double-precision floating-point number that is equivalent to , or zero if is .

public static double ToDouble( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns The 8-bit signed integer that is equivalent to .

public static double ToDouble( float value )

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

  • value The single-precision floating-point number.
  • Returns A double-precision floating-point number that is equivalent to .

public static double ToDouble( string value )

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

  • value A string that contains the number to convert.
  • Returns A double-precision floating-point number that is equivalent to the number in , or 0 (zero) if is .

public static double ToDouble( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns A double-precision floating-point number that is equivalent to the number in , or 0 (zero) if is .

public static double ToDouble( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns A double-precision floating-point number that is equivalent to .

public static double ToDouble( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns A double-precision floating-point number that is equivalent to .

public static double ToDouble( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns A double-precision floating-point number that is equivalent to .

public static short ToInt16( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static short ToInt16( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns A 16-bit signed integer that is equivalent to .

public static short ToInt16( char value )

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

  • value The Unicode character to convert.
  • Returns A 16-bit signed integer that is equivalent to .

public static short ToInt16( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static short ToInt16( decimal value )

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

  • value The decimal number to convert.
  • Returns , rounded to the nearest 16-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static short ToInt16( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns , rounded to the nearest 16-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static short ToInt16( short value )

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

  • value The 16-bit signed integer to return.
  • Returns is returned unchanged.

public static short ToInt16( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns The 16-bit signed integer equivalent of .

public static short ToInt16( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns A 16-bit signed integer that is equivalent to .

public static short ToInt16( object value )

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

  • value An object that implements the interface, or .
  • Returns A 16-bit signed integer that is equivalent to , or zero if is .

public static short ToInt16( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 16-bit signed integer that is equivalent to , or zero if is .

public static short ToInt16( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns A 8-bit signed integer that is equivalent to .

public static short ToInt16( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns , rounded to the nearest 16-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static short ToInt16( string value )

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

  • value A string that contains the number to convert.
  • Returns A 16-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static short ToInt16( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 16-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static short ToInt16( string value, int fromBase )

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

  • value A string that contains the number to convert.
  • fromBase The base of the number in , which must be 2, 8, 10, or 16.
  • Returns A 16-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static short ToInt16( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns A 16-bit signed integer that is equivalent to .

public static short ToInt16( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns A 16-bit signed integer that is equivalent to .

public static short ToInt16( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns A 16-bit signed integer that is equivalent to .

public static int ToInt32( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static int ToInt32( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns A 32-bit signed integer that is equivalent to .

public static int ToInt32( char value )

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

  • value The Unicode character to convert.
  • Returns A 32-bit signed integer that is equivalent to .

public static int ToInt32( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static int ToInt32( decimal value )

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

  • value The decimal number to convert.
  • Returns , rounded to the nearest 32-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static int ToInt32( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns , rounded to the nearest 32-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static int ToInt32( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns A 32-bit signed integer that is equivalent to .

public static int ToInt32( int value )

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

  • value The 32-bit signed integer to return.
  • Returns is returned unchanged.

public static int ToInt32( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns A 32-bit signed integer that is equivalent to .

public static int ToInt32( object value )

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

  • value An object that implements the interface, or .
  • Returns A 32-bit signed integer equivalent to , or zero if is .

public static int ToInt32( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 32-bit signed integer that is equivalent to , or zero if is .

public static int ToInt32( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns A 8-bit signed integer that is equivalent to .

public static int ToInt32( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns , rounded to the nearest 32-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static int ToInt32( string value )

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

  • value A string that contains the number to convert.
  • Returns A 32-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static int ToInt32( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 32-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static int ToInt32( string value, int fromBase )

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

  • value A string that contains the number to convert.
  • fromBase The base of the number in , which must be 2, 8, 10, or 16.
  • Returns A 32-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static int ToInt32( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns A 32-bit signed integer that is equivalent to .

public static int ToInt32( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns A 32-bit signed integer that is equivalent to .

public static int ToInt32( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns A 32-bit signed integer that is equivalent to .

public static long ToInt64( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static long ToInt64( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns A 64-bit signed integer that is equivalent to .

public static long ToInt64( char value )

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

  • value The Unicode character to convert.
  • Returns A 64-bit signed integer that is equivalent to .

public static long ToInt64( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static long ToInt64( decimal value )

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

  • value The decimal number to convert.
  • Returns , rounded to the nearest 64-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static long ToInt64( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns , rounded to the nearest 64-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static long ToInt64( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns A 64-bit signed integer that is equivalent to .

public static long ToInt64( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns A 64-bit signed integer that is equivalent to .

public static long ToInt64( long value )

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

  • value A 64-bit signed integer.
  • Returns is returned unchanged.

public static long ToInt64( object value )

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

  • value An object that implements the interface, or .
  • Returns A 64-bit signed integer that is equivalent to , or zero if is .

public static long ToInt64( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 64-bit signed integer that is equivalent to , or zero if is .

public static long ToInt64( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns A 64-bit signed integer that is equivalent to .

public static long ToInt64( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns , rounded to the nearest 64-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static long ToInt64( string value )

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

  • value A string that contains a number to convert.
  • Returns A 64-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static long ToInt64( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 64-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static long ToInt64( string value, int fromBase )

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

  • value A string that contains the number to convert.
  • fromBase The base of the number in , which must be 2, 8, 10, or 16.
  • Returns A 64-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static long ToInt64( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns A 64-bit signed integer that is equivalent to .

public static long ToInt64( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns A 64-bit signed integer that is equivalent to .

public static long ToInt64( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns A 64-bit signed integer that is equivalent to .

public static sbyte ToSByte( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static sbyte ToSByte( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns An 8-bit signed integer that is equivalent to .

public static sbyte ToSByte( char value )

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

  • value The Unicode character to convert.
  • Returns An 8-bit signed integer that is equivalent to .

public static sbyte ToSByte( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static sbyte ToSByte( decimal value )

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

  • value The decimal number to convert.
  • Returns , rounded to the nearest 8-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static sbyte ToSByte( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns , rounded to the nearest 8-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static sbyte ToSByte( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns An 8-bit signed integer that is equivalent to .

public static sbyte ToSByte( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns An 8-bit signed integer that is equivalent to .

public static sbyte ToSByte( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns An 8-bit signed integer that is equivalent to .

public static sbyte ToSByte( object value )

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

  • value An object that implements the interface, or .
  • Returns An 8-bit signed integer that is equivalent to , or zero if is .

public static sbyte ToSByte( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns An 8-bit signed integer that is equivalent to , or zero if is .

public static sbyte ToSByte( sbyte value )

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

  • value The 8-bit signed integer to return.
  • Returns is returned unchanged.

public static sbyte ToSByte( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns , rounded to the nearest 8-bit signed integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static sbyte ToSByte( string value )

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

  • value A string that contains the number to convert.
  • Returns An 8-bit signed integer that is equivalent to the number in , or 0 (zero) if value is .

public static sbyte ToSByte( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns An 8-bit signed integer that is equivalent to .

public static sbyte ToSByte( string value, int fromBase )

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

  • value A string that contains the number to convert.
  • fromBase The base of the number in , which must be 2, 8, 10, or 16.
  • Returns An 8-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static sbyte ToSByte( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns An 8-bit signed integer that is equivalent to .

public static sbyte ToSByte( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns An 8-bit signed integer that is equivalent to .

public static sbyte ToSByte( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns An 8-bit signed integer that is equivalent to .

public static float ToSingle( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static float ToSingle( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns A single-precision floating-point number that is equivalent to .

public static float ToSingle( char value )

Calling this method always throws .

  • value The Unicode character to convert.
  • Returns This conversion is not supported. No value is returned.

public static float ToSingle( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static float ToSingle( decimal value )

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

  • value The decimal number to convert.
  • Returns A single-precision floating-point number that is equivalent to . is rounded using rounding to nearest. For example, when rounded to two decimals, the value 2.345 becomes 2.34 and the value 2.355 becomes 2.36.

public static float ToSingle( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns A single-precision floating-point number that is equivalent to . is rounded using rounding to nearest. For example, when rounded to two decimals, the value 2.345 becomes 2.34 and the value 2.355 becomes 2.36.

public static float ToSingle( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns A single-precision floating-point number that is equivalent to .

public static float ToSingle( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns A single-precision floating-point number that is equivalent to .

public static float ToSingle( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns A single-precision floating-point number that is equivalent to .

public static float ToSingle( object value )

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

  • value An object that implements the interface, or .
  • Returns A single-precision floating-point number that is equivalent to , or zero if is .

public static float ToSingle( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A single-precision floating-point number that is equivalent to , or zero if is .

public static float ToSingle( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns An 8-bit signed integer that is equivalent to .

public static float ToSingle( float value )

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

  • value The single-precision floating-point number to return.
  • Returns is returned unchanged.

public static float ToSingle( string value )

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

  • value A string that contains the number to convert.
  • Returns A single-precision floating-point number that is equivalent to the number in , or 0 (zero) if is .

public static float ToSingle( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns A single-precision floating-point number that is equivalent to the number in , or 0 (zero) if is .

public static float ToSingle( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns A single-precision floating-point number that is equivalent to .

public static float ToSingle( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns A single-precision floating-point number that is equivalent to .

public static float ToSingle( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns A single-precision floating-point number that is equivalent to .

public static string ToString( bool value )

Converts the specified Boolean value to its equivalent string representation.

  • value The Boolean value to convert.
  • Returns The string representation of .

public static string ToString( bool value, IFormatProvider provider )

Converts the specified Boolean value to its equivalent string representation.

  • value The Boolean value to convert.
  • provider An instance of an object. This parameter is ignored.
  • Returns The string representation of .

public static string ToString( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns The string representation of .

public static string ToString( byte value, IFormatProvider provider )

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

  • value The 8-bit unsigned integer to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( byte value, int toBase )

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

  • value The 8-bit unsigned integer to convert.
  • toBase The base of the return value, which must be 2, 8, 10, or 16.
  • Returns The string representation of in base .

public static string ToString( char value )

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

  • value The Unicode character to convert.
  • Returns The string representation of .

public static string ToString( char value, IFormatProvider provider )

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

  • value The Unicode character to convert.
  • provider An object that supplies culture-specific formatting information. This parameter is ignored.
  • Returns The string representation of .

public static string ToString( DateTime value )

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

  • value The date and time value to convert.
  • Returns The string representation of .

public static string ToString( DateTime value, IFormatProvider provider )

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

  • value The date and time value to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( decimal value )

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

  • value The decimal number to convert.
  • Returns The string representation of .

public static string ToString( decimal value, IFormatProvider provider )

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

  • value The decimal number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns The string representation of .

public static string ToString( double value, IFormatProvider provider )

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

  • value The double-precision floating-point number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns The string representation of .

public static string ToString( short value, IFormatProvider provider )

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

  • value The 16-bit signed integer to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( short value, int toBase )

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

  • value The 16-bit signed integer to convert.
  • toBase The base of the return value, which must be 2, 8, 10, or 16.
  • Returns The string representation of in base .

public static string ToString( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns The string representation of .

public static string ToString( int value, IFormatProvider provider )

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

  • value The 32-bit signed integer to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( int value, int toBase )

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

  • value The 32-bit signed integer to convert.
  • toBase The base of the return value, which must be 2, 8, 10, or 16.
  • Returns The string representation of in base .

public static string ToString( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns The string representation of .

public static string ToString( long value, IFormatProvider provider )

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

  • value The 64-bit signed integer to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( long value, int toBase )

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

  • value The 64-bit signed integer to convert.
  • toBase The base of the return value, which must be 2, 8, 10, or 16.
  • Returns The string representation of in base .

public static string ToString( object value )

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

  • value An object that supplies the value to convert, or .
  • Returns The string representation of , or if is .

public static string ToString( object value, IFormatProvider provider )

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

  • value An object that supplies the value to convert, or .
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of , or if is an object whose value is . If is , the method returns .

public static string ToString( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns The string representation of .

public static string ToString( sbyte value, IFormatProvider provider )

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

  • value The 8-bit signed integer to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns The string representation of .

public static string ToString( float value, IFormatProvider provider )

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

  • value The single-precision floating-point number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( string value )

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

  • value The string to return.
  • Returns is returned unchanged.

public static string ToString( string value, IFormatProvider provider )

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

  • value The string to return.
  • provider An object that supplies culture-specific formatting information. This parameter is ignored.
  • Returns is returned unchanged.

public static string ToString( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns The string representation of .

public static string ToString( ushort value, IFormatProvider provider )

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

  • value The 16-bit unsigned integer to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns The string representation of .

public static string ToString( uint value, IFormatProvider provider )

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

  • value The 32-bit unsigned integer to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static string ToString( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns The string representation of .

public static string ToString( ulong value, IFormatProvider provider )

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

  • value The 64-bit unsigned integer to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns The string representation of .

public static ushort ToUInt16( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static ushort ToUInt16( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns A 16-bit unsigned integer that is equivalent to .

public static ushort ToUInt16( char value )

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

  • value The Unicode character to convert.
  • Returns The 16-bit unsigned integer equivalent to .

public static ushort ToUInt16( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static ushort ToUInt16( decimal value )

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

  • value The decimal number to convert.
  • Returns , rounded to the nearest 16-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static ushort ToUInt16( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns , rounded to the nearest 16-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static ushort ToUInt16( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns A 16-bit unsigned integer that is equivalent to .

public static ushort ToUInt16( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns A 16-bit unsigned integer that is equivalent to .

public static ushort ToUInt16( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns A 16-bit unsigned integer that is equivalent to .

public static ushort ToUInt16( object value )

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

  • value An object that implements the interface, or .
  • Returns A 16-bit unsigned integer that is equivalent to , or zero if is .

public static ushort ToUInt16( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 16-bit unsigned integer that is equivalent to , or zero if is .

public static ushort ToUInt16( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns A 16-bit unsigned integer that is equivalent to .

public static ushort ToUInt16( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns , rounded to the nearest 16-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static ushort ToUInt16( string value )

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

  • value A string that contains the number to convert.
  • Returns A 16-bit unsigned integer that is equivalent to the number in , or 0 (zero) if is .

public static ushort ToUInt16( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 16-bit unsigned integer that is equivalent to the number in , or 0 (zero) if is .

public static ushort ToUInt16( string value, int fromBase )

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

  • value A string that contains the number to convert.
  • fromBase The base of the number in , which must be 2, 8, 10, or 16.
  • Returns A 16-bit unsigned integer that is equivalent to the number in , or 0 (zero) if is .

public static ushort ToUInt16( ushort value )

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

  • value The 16-bit unsigned integer to return.
  • Returns is returned unchanged.

public static ushort ToUInt16( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns A 16-bit unsigned integer that is equivalent to .

public static ushort ToUInt16( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns A 16-bit unsigned integer that is equivalent to .

public static uint ToUInt32( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static uint ToUInt32( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns A 32-bit unsigned integer that is equivalent to .

public static uint ToUInt32( char value )

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

  • value The Unicode character to convert.
  • Returns A 32-bit unsigned integer that is equivalent to .

public static uint ToUInt32( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static uint ToUInt32( decimal value )

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

  • value The decimal number to convert.
  • Returns , rounded to the nearest 32-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static uint ToUInt32( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns , rounded to the nearest 32-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static uint ToUInt32( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns A 32-bit unsigned integer that is equivalent to .

public static uint ToUInt32( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns A 32-bit unsigned integer that is equivalent to .

public static uint ToUInt32( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns A 32-bit unsigned integer that is equivalent to .

public static uint ToUInt32( object value )

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

  • value An object that implements the interface, or .
  • Returns A 32-bit unsigned integer that is equivalent to , or 0 (zero) if is .

public static uint ToUInt32( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 32-bit unsigned integer that is equivalent to , or zero if is .

public static uint ToUInt32( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns A 32-bit unsigned integer that is equivalent to .

public static uint ToUInt32( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns , rounded to the nearest 32-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static uint ToUInt32( string value )

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

  • value A string that contains the number to convert.
  • Returns A 32-bit unsigned integer that is equivalent to the number in , or 0 (zero) if is .

public static uint ToUInt32( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 32-bit unsigned integer that is equivalent to the number in , or 0 (zero) if is .

public static uint ToUInt32( string value, int fromBase )

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

  • value A string that contains the number to convert.
  • fromBase The base of the number in , which must be 2, 8, 10, or 16.
  • Returns A 32-bit unsigned integer that is equivalent to the number in , or 0 (zero) if is .

public static uint ToUInt32( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns A 32-bit unsigned integer that is equivalent to .

public static uint ToUInt32( uint value )

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

  • value The 32-bit unsigned integer to return.
  • Returns is returned unchanged.

public static uint ToUInt32( ulong value )

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

  • value The 64-bit unsigned integer to convert.
  • Returns A 32-bit unsigned integer that is equivalent to .

public static ulong ToUInt64( bool value )

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

  • value The Boolean value to convert.
  • Returns The number 1 if is ; otherwise, 0.

public static ulong ToUInt64( byte value )

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

  • value The 8-bit unsigned integer to convert.
  • Returns A 64-bit signed integer that is equivalent to .

public static ulong ToUInt64( char value )

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

  • value The Unicode character to convert.
  • Returns A 64-bit unsigned integer that is equivalent to .

public static ulong ToUInt64( DateTime value )

Calling this method always throws .

  • value The date and time value to convert.
  • Returns This conversion is not supported. No value is returned.

public static ulong ToUInt64( decimal value )

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

  • value The decimal number to convert.
  • Returns , rounded to the nearest 64-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static ulong ToUInt64( double value )

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

  • value The double-precision floating-point number to convert.
  • Returns , rounded to the nearest 64-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static ulong ToUInt64( short value )

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

  • value The 16-bit signed integer to convert.
  • Returns A 64-bit unsigned integer that is equivalent to .

public static ulong ToUInt64( int value )

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

  • value The 32-bit signed integer to convert.
  • Returns A 64-bit unsigned integer that is equivalent to .

public static ulong ToUInt64( long value )

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

  • value The 64-bit signed integer to convert.
  • Returns A 64-bit unsigned integer that is equivalent to .

public static ulong ToUInt64( object value )

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

  • value An object that implements the interface, or .
  • Returns A 64-bit unsigned integer that is equivalent to , or zero if is .

public static ulong ToUInt64( object value, IFormatProvider provider )

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

  • value An object that implements the interface.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 64-bit unsigned integer that is equivalent to , or zero if is .

public static ulong ToUInt64( sbyte value )

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

  • value The 8-bit signed integer to convert.
  • Returns A 64-bit unsigned integer that is equivalent to .

public static ulong ToUInt64( float value )

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

  • value The single-precision floating-point number to convert.
  • Returns , rounded to the nearest 64-bit unsigned integer. If is halfway between two whole numbers, the even number is returned; that is, 4.5 is converted to 4, and 5.5 is converted to 6.

public static ulong ToUInt64( string value )

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

  • value A string that contains the number to convert.
  • Returns A 64-bit signed integer that is equivalent to the number in , or 0 (zero) if is .

public static ulong ToUInt64( string value, IFormatProvider provider )

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

  • value A string that contains the number to convert.
  • provider An object that supplies culture-specific formatting information.
  • Returns A 64-bit unsigned integer that is equivalent to the number in , or 0 (zero) if is .

public static ulong ToUInt64( string value, int fromBase )

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

  • value A string that contains the number to convert.
  • fromBase The base of the number in , which must be 2, 8, 10, or 16.
  • Returns A 64-bit unsigned integer that is equivalent to the number in , or 0 (zero) if is .

public static ulong ToUInt64( ushort value )

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

  • value The 16-bit unsigned integer to convert.
  • Returns A 64-bit unsigned integer that is equivalent to .

public static ulong ToUInt64( uint value )

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

  • value The 32-bit unsigned integer to convert.
  • Returns A 64-bit unsigned integer that is equivalent to .

public static ulong ToUInt64( ulong value )

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

  • value The 64-bit unsigned integer to return.
  • Returns is returned unchanged.

public static byte[] FromHexString( ReadOnlySpan<char> chars )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public static bool TryToHexStringLower( ReadOnlySpan<byte> source, Span<char> destination, ref int charsWritten )

😔 No documentation found.

public static string ToHexStringLower( ReadOnlySpan<byte> bytes )

😔 No documentation found.

public static string ToHexStringLower( byte[] inArray, int offset, int length )

😔 No documentation found.

public static string ToHexStringLower( byte[] inArray )

😔 No documentation found.

public static bool TryToHexString( ReadOnlySpan<byte> source, Span<char> destination, ref int charsWritten )

😔 No documentation found.

public static string ToHexString( byte[] inArray, int offset, int length )

😔 No documentation found.

public static string ToHexString( byte[] inArray )

😔 No documentation found.

public static OperationStatus FromHexString( ReadOnlySpan<char> source, Span<byte> destination, ref int charsConsumed, ref int bytesWritten )

😔 No documentation found.

public static OperationStatus FromHexString( string source, Span<byte> destination, ref int charsConsumed, ref int bytesWritten )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public static byte[] FromHexString( string s )

😔 No documentation found.

public static bool TryFromBase64Chars( ReadOnlySpan<char> chars, Span<byte> bytes, ref int bytesWritten )

😔 No documentation found.

public static bool TryFromBase64String( string s, Span<byte> bytes, ref int bytesWritten )

😔 No documentation found.

public static string ToBase64String( ReadOnlySpan<byte> bytes, Base64FormattingOptions options = None )

😔 No documentation found.

public static string ToHexString( ReadOnlySpan<byte> bytes )

😔 No documentation found.

public static bool TryToBase64Chars( ReadOnlySpan<byte> bytes, Span<char> chars, ref int charsWritten, Base64FormattingOptions options = None )

😔 No documentation found.