ObjectConverter Class

Definition

Warning

This API is now obsolete.

将对象从一种对象类型转换为另一种对象类型。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.

This API supports the product infrastructure and is not intended to be used directly from your code.

public ref class ObjectConverter sealed
[System.Obsolete("Use the System.Convert class and String.Format instead")]
public sealed class ObjectConverter
[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
Inheritance
ObjectConverter
Attributes

Constructors

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.

Methods

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.

(Inherited from Object)
GetHashCode()

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

(Inherited from Object)
GetType()

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

(Inherited from Object)
MemberwiseClone()

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

(Inherited from Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

Applies to