FormatterConverter 成员

表示 IFormatterConverter 接口的基实现,该接口使用 Convert 类和 IConvertible 接口。

下表列出了由 FormatterConverter 类型公开的成员。

公共构造函数

  名称 说明
Public method FormatterConverter 初始化 FormatterConverter 类的新实例。

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Convert 已重载。 将值转换为给定的类型。
Public method Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Static ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method ToBoolean 将值转换为 Boolean
Public method ToByte 将值转换为 8 位无符号整数。
Public method ToChar 将值转换为 Unicode 字符。
Public method ToDateTime 将值转换为 DateTime
Public method ToDecimal 将值转换为 Decimal
Public method ToDouble 将值转换为双精度浮点数字。
Public method ToInt16 将值转换为 16 位有符号整数。
Public method ToInt32 将值转换为 32 位有符号整数。
Public method ToInt64 将值转换为 64 位有符号整数。
Public method ToSByte 将值转换为 SByte
Public method ToSingle 将值转换为单精度浮点数字。
Public method ToString 已重载。 将值转换为字符串。
Public method ToUInt16 将值转换为 16 位无符号整数。
Public method ToUInt32 将值转换为 32 位无符号整数。
Public method ToUInt64 将值转换为 64 位无符号整数。

页首

受保护的方法

  名称 说明
Protected method Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)

页首

请参见

参考

FormatterConverter 类
System.Runtime.Serialization 命名空间