EnumeratorKeyWrapperT, TKey Constructor |
Create a new wrapper object that wraps the provided enumerator
Namespace:
DHI.Mike1D.Generic.Collections
Assembly:
DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public EnumeratorKeyWrapper(
IEnumerator<T> enumerator,
Func<T, TKey> keySelector
)
Public Sub New (
enumerator As IEnumerator(Of T),
keySelector As Func(Of T, TKey)
)
public:
EnumeratorKeyWrapper(
IEnumerator<T>^ enumerator,
Func<T, TKey>^ keySelector
)
Parameters
- enumerator
- Type: System.Collections.GenericIEnumeratorT
Enumerator to wrap - keySelector
- Type: SystemFuncT, TKey
Delegate that extracts a key from the object in the wrapped enumerator
See Also