Redigera

Dela via


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
Convert

Constructors

Convert()

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

Initializes a new instance of the Convert class.

Methods

CheckIfDoubleIsInteger(Double)

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

Determines whether a Double variable contains an integer value.

CheckIfSingleIsInteger(Single)

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

Determines whether a Single variable contains an integer value.

Coerce(Object, Object)

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

Converts the specified value to the specified type.

Coerce2(Object, TypeCode, Boolean)

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

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

CoerceT(Object, Type, Boolean)

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

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

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

Gets the Type of the current instance.

(Inherited from Object)
IsBadIndex(AST)

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

Determines whether a variable contains an array index value.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ThrowTypeMismatch(Object)

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

Throws a JScriptException exception in all cases.

ToBoolean(Double)

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

Converts the specified Double to a Boolean.

ToBoolean(Object, Boolean)

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

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

ToBoolean(Object)

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

Converts the specified Object to a Boolean.

ToForInObject(Object, VsaEngine)

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

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

ToInt32(Object)

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

Converts the specified value to an Int32.

ToNativeArray(Object, RuntimeTypeHandle)

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

Converts the specified ArrayObject to a typed Array.

ToNumber(Object)

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

Converts the specified Object to a Double.

ToNumber(String)

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

Converts the specified String to a Double.

ToObject(Object, VsaEngine)

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

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

ToObject2(Object, VsaEngine)

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

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

ToString()

Returns a string that represents the current object.

(Inherited from Object)
ToString(Boolean)

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

Converts the specified Boolean to a String.

ToString(Double)

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

Converts the specified Double to a String.

ToString(Object, Boolean)

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

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

Applies to