IFormatterConverter 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
Formatter-based serialization is obsolete and should not be used.
重要
此 API 不符合 CLS。
提供 SerializationInfo 的实例与格式化程序所提供的、最适用于分析 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
- 派生
- 属性
方法
| 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 位无符号整数。 |