IFormatterConverter 接口

定义

注意

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

重要

此 API 不符合 CLS。

提供实例与格式化程序提供的类之间的连接 SerializationInfo ,最适合分析内部 SerializationInfo的数据。

public interface class 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)]
public interface IFormatterConverter
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
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}")>]
type IFormatterConverter = interface
[<System.CLSCompliant(false)>]
type IFormatterConverter = interface
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IFormatterConverter = interface
Public Interface IFormatterConverter
派生
属性

方法

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

将值转换为给定 Type值。

Convert(Object, TypeCode)
已过时.

将值转换为给定 TypeCode值。

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)
已过时.

将值转换为 String.

ToUInt16(Object)
已过时.

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

ToUInt32(Object)
已过时.

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

ToUInt64(Object)
已过时.

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

适用于