Convert Convert Convert Convert Class

Definition

Converts data from one type to another. This is a utility class.

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

public ref class Convert sealed
public sealed class Convert
type Convert = class
Public NotInheritable Class Convert
Inheritance
ConvertConvertConvertConvert

Constructors

Convert() Convert() Convert() Convert()

Initializes a new instance of the Convert class.

Methods

CheckIfDoubleIsInteger(Double) CheckIfDoubleIsInteger(Double) CheckIfDoubleIsInteger(Double) CheckIfDoubleIsInteger(Double)

Determines whether a Double variable contains an integer value.

CheckIfSingleIsInteger(Single) CheckIfSingleIsInteger(Single) CheckIfSingleIsInteger(Single) CheckIfSingleIsInteger(Single)

Determines whether a Single variable contains an integer value.

Coerce(Object, Object) Coerce(Object, Object) Coerce(Object, Object) Coerce(Object, Object)

Converts the specified value to the specified type.

Coerce2(Object, TypeCode, Boolean) Coerce2(Object, TypeCode, Boolean) Coerce2(Object, TypeCode, Boolean) Coerce2(Object, TypeCode, Boolean)

Converts the specified value to the specified TypeCode, optionally allowing data loss.

CoerceT(Object, Type, Boolean) CoerceT(Object, Type, Boolean) CoerceT(Object, Type, Boolean) CoerceT(Object, Type, Boolean)

Converts the specified value to the specified Type, optionally allowing data loss.

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()

Gets the Type of the current instance.

(Inherited from Object)
IsBadIndex(AST) IsBadIndex(AST) IsBadIndex(AST) IsBadIndex(AST)

Determines whether a variable contains an array index value.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ThrowTypeMismatch(Object) ThrowTypeMismatch(Object) ThrowTypeMismatch(Object) ThrowTypeMismatch(Object)

Throws a JScriptException exception in all cases.

ToBoolean(Double) ToBoolean(Double) ToBoolean(Double) ToBoolean(Double)

Converts the specified Double to a Boolean.

ToBoolean(Object) ToBoolean(Object) ToBoolean(Object) ToBoolean(Object)

Converts the specified Object to a Boolean.

ToBoolean(Object, Boolean) ToBoolean(Object, Boolean) ToBoolean(Object, Boolean) ToBoolean(Object, Boolean)

Converts the specified Object value to a Boolean structure, optionally allowing data loss.

ToForInObject(Object, VsaEngine) ToForInObject(Object, VsaEngine) ToForInObject(Object, VsaEngine) ToForInObject(Object, VsaEngine)

Converts the specified value to an Object that represents a collection of AST objects.

ToInt32(Object) ToInt32(Object) ToInt32(Object) ToInt32(Object)

Converts the specified value to an Int32.

ToNativeArray(Object, RuntimeTypeHandle) ToNativeArray(Object, RuntimeTypeHandle) ToNativeArray(Object, RuntimeTypeHandle) ToNativeArray(Object, RuntimeTypeHandle)

Converts the specified ArrayObject to a typed Array.

ToNumber(Object) ToNumber(Object) ToNumber(Object) ToNumber(Object)

Converts the specified Object to a Double.

ToNumber(String) ToNumber(String) ToNumber(String) ToNumber(String)

Converts the specified String to a Double.

ToObject(Object, VsaEngine) ToObject(Object, VsaEngine) ToObject(Object, VsaEngine) ToObject(Object, VsaEngine)

Converts the specified value to an Object. Throws an error if it cannot perform the conversion.

ToObject2(Object, VsaEngine) ToObject2(Object, VsaEngine) ToObject2(Object, VsaEngine) ToObject2(Object, VsaEngine)

Converts the specified value to an Object. Returns null if it cannot perform the conversion.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

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

Converts the specified Boolean to a String.

ToString(Double) ToString(Double) ToString(Double) ToString(Double)

Converts the specified Double to a String.

ToString(Object, Boolean) ToString(Object, Boolean) ToString(Object, Boolean) ToString(Object, Boolean)

Converts the specified Object to a String, optionally allowing data loss.

Applies to