<PackageReference Include="System.Runtime.Serialization.Formatters" Version="11.0.0-rc.3.26522.148" />

System.Runtime.Serialization.FormatterConverter

Represents a base implementation of the IFormatterConverter interface that uses the Convert class and the IConvertible interface.

Initializes a new instance of the FormatterConverter class.

public object Convert(object value, Type type)

Converts a value to the given Type.

public object Convert(object value, TypeCode typeCode)

Converts a value to the given TypeCode.

public bool ToBoolean(object value)

Converts a value to a Boolean.

public byte ToByte(object value)

Converts a value to an 8-bit unsigned integer.

public char ToChar(object value)

Converts a value to a Unicode character.

public DateTime ToDateTime(object value)

Converts a value to a DateTime.

public decimal ToDecimal(object value)

Converts a value to a Decimal.

public double ToDouble(object value)

Converts a value to a double-precision floating-point number.

public short ToInt16(object value)

Converts a value to a 16-bit signed integer.

public int ToInt32(object value)

Converts a value to a 32-bit signed integer.

public long ToInt64(object value)

Converts a value to a 64-bit signed integer.

public sbyte ToSByte(object value)

Converts a value to a SByte.

public float ToSingle(object value)

Converts a value to a single-precision floating-point number.

public string ToString(object value)

Converts the specified object to a String.

public ushort ToUInt16(object value)

Converts a value to a 16-bit unsigned integer.

public uint ToUInt32(object value)

Converts a value to a 32-bit unsigned integer.

public ulong ToUInt64(object value)

Converts a value to a 64-bit unsigned integer.