FormatterConverter Class

Definition

Caution

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

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

public ref class FormatterConverter : System::Runtime::Serialization::IFormatterConverter
public class FormatterConverter : System.Runtime.Serialization.IFormatterConverter
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public class FormatterConverter : System.Runtime.Serialization.IFormatterConverter
[System.Runtime.InteropServices.ComVisible(true)]
public class FormatterConverter : System.Runtime.Serialization.IFormatterConverter
type FormatterConverter = class
    interface IFormatterConverter
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type FormatterConverter = class
    interface IFormatterConverter
[<System.Runtime.InteropServices.ComVisible(true)>]
type FormatterConverter = class
    interface IFormatterConverter
Public Class FormatterConverter
Implements IFormatterConverter
Inheritance
FormatterConverter
Attributes
Implements

Constructors

FormatterConverter()

Initializes a new instance of the FormatterConverter class.

Methods

Convert(Object, Type)

Converts a value to the given Type.

Convert(Object, TypeCode)

Converts a value to the given TypeCode.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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()

Returns a string that represents the current object.

(Inherited from Object)
ToString(Object)

Converts the specified object 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