ObjectConverter 类

定义

警告

此 API 现已过时。

将对象从一种对象类型转换为另一种对象类型。Converts an object from one object type to another object type. 此类已过时。This class is obsolete. 请换用 Convert 类和 Format(String, Object) 方法。Use the Convert class and the Format(String, Object) method instead.

此 API 支持产品基础结构,不能在代码中直接使用。

public ref class ObjectConverter sealed
[System.Obsolete("Use the System.Convert class and String.Format instead")]
[System.Obsolete("The recommended alternative is System.Convert and String.Format. http://go.microsoft.com/fwlink/?linkid=14202")]
public sealed class ObjectConverter
type ObjectConverter = class
Public NotInheritable Class ObjectConverter
继承
ObjectConverter
属性

构造函数

ObjectConverter()

初始化 ObjectConverter 类的新实例。Initializes a new instance of the ObjectConverter class. 此类已过时。This class is obsolete. 请换用 Convert 类和 Format(String, Object) 方法。Use the Convert class and the Format(String, Object) method instead.

方法

ConvertValue(Object, Type, String)

将对象从一种对象类型转换为另一种对象类型。Converts an object from one object type to another object type. 此类已过时。This class is obsolete. 请换用 Convert 类和 Format(String, Object) 方法。Use the Convert class and the Format(String, Object) method instead.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于