IFormatterConverter Interface

Definition

Caution

Formatter-based serialization is obsolete and should not be used.

Important

This API is not CLS-compliant.

Provides the connection between an instance of SerializationInfo and the formatter-provided class best suited to parse the data inside the SerializationInfo.

[System.CLSCompliant(false)]
public interface IFormatterConverter
[System.CLSCompliant(false)]
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public interface IFormatterConverter
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public interface IFormatterConverter
Derived
Attributes

Methods

Convert(Object, Type)

Converts a value to the given Type.

Convert(Object, TypeCode)

Converts a value to the given TypeCode.

ToBoolean(Object)

Converts a value to a Boolean.

ToByte(Object)

Converts a value to an 8-bit unsigned integer.

ToChar(Object)

Converts a value to a Unicode character.

ToDateTime(Object)

Converts a value to a DateTime.

ToDecimal(Object)

Converts a value to a Decimal.

ToDouble(Object)

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

ToInt16(Object)

Converts a value to a 16-bit signed integer.

ToInt32(Object)

Converts a value to a 32-bit signed integer.

ToInt64(Object)

Converts a value to a 64-bit signed integer.

ToSByte(Object)

Converts a value to a SByte.

ToSingle(Object)

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

ToString(Object)

Converts a value to a String.

ToUInt16(Object)

Converts a value to a 16-bit unsigned integer.

ToUInt32(Object)

Converts a value to a 32-bit unsigned integer.

ToUInt64(Object)

Converts a value to a 64-bit unsigned integer.

Applies to

Product Versions (Obsolete)
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 (8 (package-provided), 8, 9 (package-provided), 9)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1