ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.V8.FastProxy
V8FastHostObjectConfiguration<TObject> Class
V8FastHostObjectConfiguration<TObject> Methods
SetEnumeratorFactory Method
SetEnumeratorFactory(Func<TObject, IV8FastEnumerator>) Method
SetEnumeratorFactory(Func<TObject, IEnumerator>) Method
SetEnumeratorFactory<TItem>(Func<TObject, IEnumerator<TItem>>) Method

# V8FastHostObjectConfiguration TObject SetEnumeratorFactory TItem(Func TObject, IEnumerator TItem) Method

Sets a callback that creates an enumerator for a TObject instance in IEnumeratorT form.
Namespace: Microsoft.ClearScript.V8.FastProxy
Assembly: ClearScript.V8 (in ClearScript.V8.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public void SetEnumeratorFactory<TItem>(
    	Func<TObject, IEnumerator<TItem>> factory
    )

    Public Sub SetEnumeratorFactory(Of TItem) (
    	factory As Func(Of TObject, IEnumerator(Of TItem))
    )

    public:
    generic<typename TItem>
    void SetEnumeratorFactory(
    	Func<TObject, IEnumerator<TItem>^>^ factory
    )

    member SetEnumeratorFactory :
            factory : Func<'TObject, IEnumerator<'TItem>> -> unit

#### Parameters

factory Func TObject, IEnumerator TItem
  A callback that creates an enumerator for a TObject instance in IEnumeratorT form.

#### Type Parameters

TItem
  The enumerator's item type.

See Also

#### Reference

V8FastHostObjectConfigurationTObject Class
SetEnumeratorFactory Overload
Microsoft.ClearScript.V8.FastProxy Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft