<PackageReference Include="System.Runtime.Serialization.Formatters" Version="11.0.0-preview.7.26381.103" />

System.Runtime.Serialization.FormatterConverter

Represents a base implementation of the IFormatterConverter interface that uses the Convert class and the IConvertible interface.
namespace System.Runtime.Serialization { public class FormatterConverter : IFormatterConverter { public object Convert(object value, Type type); public object Convert(object value, TypeCode typeCode); public bool ToBoolean(object value); public char ToChar(object value); public sbyte ToSByte(object value); public byte ToByte(object value); public short ToInt16(object value); public ushort ToUInt16(object value); public int ToInt32(object value); public uint ToUInt32(object value); public long ToInt64(object value); public ulong ToUInt64(object value); public float ToSingle(object value); public double ToDouble(object value); public decimal ToDecimal(object value); public DateTime ToDateTime(object value); public string ToString(object value); public FormatterConverter(); } }