Click or drag to resize

V8FastHostDynamicObjectTObject Class

Provides an implementation of IV8FastHostObject with a shared configuration and support for dynamic properties.
Inheritance Hierarchy
SystemObject
  Microsoft.ClearScript.V8.FastProxyV8FastHostObjectTObject
    Microsoft.ClearScript.V8.FastProxyV8FastHostDynamicObjectTObject

Namespace: Microsoft.ClearScript.V8.FastProxy
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
public abstract class V8FastHostDynamicObject<TObject> : V8FastHostObject<TObject>, 
	IV8FastHostDynamicProperties
where TObject : V8FastHostDynamicObject<TObject>

Type Parameters

TObject
The fast host object type.

The V8FastHostDynamicObjectTObject type exposes the following members.

Constructors
 NameDescription
Protected methodV8FastHostDynamicObjectTObject Initializes a new V8FastHostDynamicObjectTObject instance.
Top
Properties
 NameDescription
Public propertyDynamicPropertyIndices Enumerates the indices of all existing indexed dynamic properties.
Public propertyDynamicPropertyNames Enumerates the names of all existing named dynamic properties.
Top
Methods
 NameDescription
Protected methodStatic memberConfigure Prepares the shared configuration associated with TObject.
Public methodDeleteDynamicProperty(Int32) Deletes an indexed dynamic property.
Public methodDeleteDynamicProperty(String) Deletes a named dynamic property.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetDynamicProperty(Int32, V8FastResult) Gets the value of an indexed dynamic property.
Public methodGetDynamicProperty(String, V8FastResult) Gets the value of a named dynamic property.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHasDynamicProperty(Int32) Determines whether a dynamic property exists at the specified index.
Public methodHasDynamicProperty(String) Determines whether a dynamic property with the specified name exists.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetDynamicProperty(Int32, V8FastArg) Sets the value of an indexed dynamic property.
Public methodSetDynamicProperty(String, V8FastArg) Sets the value of a named dynamic property.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks
This class is a generic base for fast host object classes derived from it via the Curiously Recurring Template Pattern (CRTP). It uses a shared instance of V8FastHostObjectConfigurationTObject for each unique type argument. Derived classes are therefore advised to use a static constructor to invoke the Configure(V8FastHostObjectConfiguratorTObject) method.
See Also