IFormatterConverter 介面

定義

重要

此 API 不符合 CLS 規範。

提供 SerializationInfo 執行個體 (Instance) 和格式子提供類別之間的連接,最適用於在 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)

將值轉換為指定的 TypeConverts a value to the given Type.

Convert(Object, TypeCode)

將值轉換為指定的 TypeCodeConverts a value to the given TypeCode.

ToBoolean(Object)

將值轉換成 BooleanConverts a value to a Boolean.

ToByte(Object)

將值轉換為 8 位元的不帶正負號整數 (Unsigned Integer)。Converts a value to an 8-bit unsigned integer.

ToChar(Object)

將值轉換為 Unicode 字元。Converts a value to a Unicode character.

ToDateTime(Object)

將值轉換成 DateTimeConverts a value to a DateTime.

ToDecimal(Object)

將值轉換成 DecimalConverts a value to a Decimal.

ToDouble(Object)

將值轉換為雙精度浮點數。Converts a value to a double-precision floating-point number.

ToInt16(Object)

將值轉換為 16 位元帶正負號的整數。Converts a value to a 16-bit signed integer.

ToInt32(Object)

將值轉換為 32 位元帶正負號的整數。Converts a value to a 32-bit signed integer.

ToInt64(Object)

將值轉換為 64 位元帶正負號的整數。Converts a value to a 64-bit signed integer.

ToSByte(Object)

將值轉換成 SByteConverts a value to a SByte.

ToSingle(Object)

將值轉換為單精確度浮點數。Converts a value to a single-precision floating-point number.

ToString(Object)

將值轉換成 StringConverts a value to a String.

ToUInt16(Object)

將值轉換為 16 位元不帶正負號的整數。Converts a value to a 16-bit unsigned integer.

ToUInt32(Object)

將值轉換為 32 位元不帶正負號的整數。Converts a value to a 32-bit unsigned integer.

ToUInt64(Object)

將值轉換為 64 位元不帶正負號的整數。Converts a value to a 64-bit unsigned integer.

適用於