IFormatterConverter IFormatterConverter IFormatterConverter IFormatterConverter Interface

定义

重要

此 API 不符合 CLS。

提供 SerializationInfo 的实例与格式化程序所提供的、最适用于分析 SerializationInfo 中的数据的类之间的连接。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)]
[System.Runtime.InteropServices.ComVisible(true)]
public interface IFormatterConverter
type IFormatterConverter = interface
Public Interface IFormatterConverter
派生
属性

方法

Convert(Object, Type) Convert(Object, Type) Convert(Object, Type) Convert(Object, Type)

将值转换为给定的 TypeConverts a value to the given Type.

Convert(Object, TypeCode) Convert(Object, TypeCode) Convert(Object, TypeCode) Convert(Object, TypeCode)

将值转换为给定的 TypeCodeConverts a value to the given TypeCode.

ToBoolean(Object) ToBoolean(Object) ToBoolean(Object) ToBoolean(Object)

将一个值转换为 BooleanConverts a value to a Boolean.

ToByte(Object) ToByte(Object) ToByte(Object) ToByte(Object)

将值转换为 8 位无符号整数。Converts a value to an 8-bit unsigned integer.

ToChar(Object) ToChar(Object) ToChar(Object) ToChar(Object)

将值转换为 Unicode 字符。Converts a value to a Unicode character.

ToDateTime(Object) ToDateTime(Object) ToDateTime(Object) ToDateTime(Object)

将一个值转换为 DateTimeConverts a value to a DateTime.

ToDecimal(Object) ToDecimal(Object) ToDecimal(Object) ToDecimal(Object)

将一个值转换为 DecimalConverts a value to a Decimal.

ToDouble(Object) ToDouble(Object) ToDouble(Object) ToDouble(Object)

将值转换为双精度浮点数字。Converts a value to a double-precision floating-point number.

ToInt16(Object) ToInt16(Object) ToInt16(Object) ToInt16(Object)

将值转换为 16 位带符号整数。Converts a value to a 16-bit signed integer.

ToInt32(Object) ToInt32(Object) ToInt32(Object) ToInt32(Object)

将值转换为 32 位带符号整数。Converts a value to a 32-bit signed integer.

ToInt64(Object) ToInt64(Object) ToInt64(Object) ToInt64(Object)

将值转换为 64 位带符号整数。Converts a value to a 64-bit signed integer.

ToSByte(Object) ToSByte(Object) ToSByte(Object) ToSByte(Object)

将一个值转换为 SByteConverts a value to a SByte.

ToSingle(Object) ToSingle(Object) ToSingle(Object) ToSingle(Object)

将值转换为单精度浮点数字。Converts a value to a single-precision floating-point number.

ToString(Object) ToString(Object) ToString(Object) ToString(Object)

将一个值转换为 StringConverts a value to a String.

ToUInt16(Object) ToUInt16(Object) ToUInt16(Object) ToUInt16(Object)

将值转换为 16 位无符号整数。Converts a value to a 16-bit unsigned integer.

ToUInt32(Object) ToUInt32(Object) ToUInt32(Object) ToUInt32(Object)

将值转换为 32 位无符号整数。Converts a value to a 32-bit unsigned integer.

ToUInt64(Object) ToUInt64(Object) ToUInt64(Object) ToUInt64(Object)

将值转换为 64 位无符号整数。Converts a value to a 64-bit unsigned integer.

适用于