FormatterConverter 类

定义

注意

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

表示使用IFormatterConverter类和Convert接口的IConvertible接口的基本实现。

public ref 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
public class FormatterConverter : System.Runtime.Serialization.IFormatterConverter
[System.Runtime.InteropServices.ComVisible(true)]
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}")>]
type FormatterConverter = class
    interface IFormatterConverter
type FormatterConverter = class
    interface IFormatterConverter
[<System.Runtime.InteropServices.ComVisible(true)>]
type FormatterConverter = class
    interface IFormatterConverter
Public Class FormatterConverter
Implements IFormatterConverter
继承
FormatterConverter
属性
实现

构造函数

名称 说明
FormatterConverter()
已过时.

初始化 FormatterConverter 类的新实例。

方法

名称 说明
Convert(Object, Type)
已过时.

将值转换为给定 Type值。

Convert(Object, TypeCode)
已过时.

将值转换为给定 TypeCode值。

Equals(Object)
已过时.

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()
已过时.

用作默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object的浅表副本。

(继承自 Object)
ToBoolean(Object)
已过时.

将值转换为 Boolean.

ToByte(Object)
已过时.

将值转换为 8 位无符号整数。

ToChar(Object)
已过时.

将值转换为 Unicode 字符。

ToDateTime(Object)
已过时.

将值转换为 DateTime.

ToDecimal(Object)
已过时.

将值转换为 Decimal.

ToDouble(Object)
已过时.

将值转换为双精度浮点数。

ToInt16(Object)
已过时.

将值转换为 16 位有符号整数。

ToInt32(Object)
已过时.

将值转换为 32 位有符号整数。

ToInt64(Object)
已过时.

将值转换为 64 位有符号整数。

ToSByte(Object)
已过时.

将值转换为 SByte.

ToSingle(Object)
已过时.

将值转换为单精度浮点数。

ToString()
已过时.

返回一个表示当前对象的字符串。

(继承自 Object)
ToString(Object)
已过时.

将指定的对象转换为 String.

ToUInt16(Object)
已过时.

将值转换为 16 位无符号整数。

ToUInt32(Object)
已过时.

将值转换为 32 位无符号整数。

ToUInt64(Object)
已过时.

将值转换为 64 位无符号整数。

适用于