Click or drag to resize

V8FastHostObject<TObject> Class

Provides an implementation of IV8FastHostObject with a shared configuration.
Inheritance Hierarchy
System.Object
  Microsoft.ClearScript.V8.FastProxy.V8FastHostObject<TObject>
    Microsoft.ClearScript.V8.FastProxy.V8FastHostDynamicObject<TObject>

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

Type Parameters

TObject
The fast host object type.

The V8FastHostObject<TObject> type exposes the following members.

Constructors
 NameDescription
Protected methodV8FastHostObject<TObject> Initializes a new V8FastHostObject<TObject> instance.
Top
Methods
 NameDescription
Protected methodStatic memberConfigure Prepares the shared configuration associated with TObject.
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 methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
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 V8FastHostObjectConfiguration<TObject> for each unique type argument. Derived classes are therefore advised to use a static constructor to invoke the Configure(V8FastHostObjectConfigurator<TObject>) method.
See Also