FormatterConverter FormatterConverter FormatterConverter FormatterConverter Class

定義

表示 IFormatterConverter 介面的基底實作,該介面使用 Convert 類別和 IConvertible 介面。Represents a base implementation of the IFormatterConverter interface that uses the Convert class and the IConvertible interface.

public ref class FormatterConverter : System::Runtime::Serialization::IFormatterConverter
[System.Runtime.InteropServices.ComVisible(true)]
public class FormatterConverter : System.Runtime.Serialization.IFormatterConverter
type FormatterConverter = class
    interface IFormatterConverter
Public Class FormatterConverter
Implements IFormatterConverter
繼承
FormatterConverterFormatterConverterFormatterConverterFormatterConverter
屬性
實作

建構函式

FormatterConverter() FormatterConverter() FormatterConverter() FormatterConverter()

初始化 FormatterConverter 類別的新執行個體。Initializes a new instance of the FormatterConverter class.

方法

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.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToBoolean(Object) ToBoolean(Object) ToBoolean(Object) ToBoolean(Object)

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

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

將值轉換為 8 位元的不帶正負號整數 (Unsigned Integer)。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() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
ToString(Object) ToString(Object) ToString(Object) ToString(Object)

將指定物件轉換為 StringConverts the specified object 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.

適用於