ערוך

שתף באמצעות


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.

public interface class IFormatterConverter
[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
[<System.CLSCompliant(false)>]
type IFormatterConverter = interface
[<System.CLSCompliant(false)>]
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type IFormatterConverter = interface
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IFormatterConverter = interface
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