interface IConvertible

in global :: System

Defines methods that convert the value of the implementing reference or value type to a common language runtime type that has an equivalent value.


public bool ToBoolean( IFormatProvider provider )

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

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns A Boolean value equivalent to the value of this instance.

public byte ToByte( IFormatProvider provider )

Converts the value of this instance to an equivalent 8-bit unsigned integer using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns An 8-bit unsigned integer equivalent to the value of this instance.

public char ToChar( IFormatProvider provider )

Converts the value of this instance to an equivalent Unicode character using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns A Unicode character equivalent to the value of this instance.

public DateTime ToDateTime( IFormatProvider provider )

Converts the value of this instance to an equivalent using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns A instance equivalent to the value of this instance.

public decimal ToDecimal( IFormatProvider provider )

Converts the value of this instance to an equivalent number using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns A number equivalent to the value of this instance.

public double ToDouble( IFormatProvider provider )

Converts the value of this instance to an equivalent double-precision floating-point number using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns A double-precision floating-point number equivalent to the value of this instance.

public short ToInt16( IFormatProvider provider )

Converts the value of this instance to an equivalent 16-bit signed integer using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns An 16-bit signed integer equivalent to the value of this instance.

public int ToInt32( IFormatProvider provider )

Converts the value of this instance to an equivalent 32-bit signed integer using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns An 32-bit signed integer equivalent to the value of this instance.

public long ToInt64( IFormatProvider provider )

Converts the value of this instance to an equivalent 64-bit signed integer using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns An 64-bit signed integer equivalent to the value of this instance.

public sbyte ToSByte( IFormatProvider provider )

Converts the value of this instance to an equivalent 8-bit signed integer using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns An 8-bit signed integer equivalent to the value of this instance.

public float ToSingle( IFormatProvider provider )

Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns A single-precision floating-point number equivalent to the value of this instance.

public string ToString( IFormatProvider provider )

Converts the value of this instance to an equivalent using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns A instance equivalent to the value of this instance.

public object ToType( Type conversionType, IFormatProvider provider )

Converts the value of this instance to an of the specified that has an equivalent value, using the specified culture-specific formatting information.

  • conversionType The to which the value of this instance is converted.
  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns An instance of type whose value is equivalent to the value of this instance.

public ushort ToUInt16( IFormatProvider provider )

Converts the value of this instance to an equivalent 16-bit unsigned integer using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns An 16-bit unsigned integer equivalent to the value of this instance.

public uint ToUInt32( IFormatProvider provider )

Converts the value of this instance to an equivalent 32-bit unsigned integer using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns An 32-bit unsigned integer equivalent to the value of this instance.

public ulong ToUInt64( IFormatProvider provider )

Converts the value of this instance to an equivalent 64-bit unsigned integer using the specified culture-specific formatting information.

  • provider An interface implementation that supplies culture-specific formatting information.
  • Returns An 64-bit unsigned integer equivalent to the value of this instance.

public TypeCode GetTypeCode( )

😔 No documentation found.