EnumerableKeyWrapperT, TKey Class

Wrapping of an IEnumerableT of T to an IEnumerableT of TKey, where the provided key selector can extract from T a key of type TKey.

This will make the enumerable available as having key class elements, without copying the content of the enumerable.

Definition

Namespace: DHI.Mike1D.Generic.Collections
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class EnumerableKeyWrapper<T, TKey> : IEnumerable<TKey>, 
	IEnumerable
Inheritance
Object    EnumerableKeyWrapperT, TKey
Implements
IEnumerableTKey, IEnumerable

Type Parameters

T
Type of objects in collection
TKey
Type of key for object in collection

Constructors

EnumerableKeyWrapperT, TKey Create a new wrapper object that wraps the provided enumerable

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumerator Returns an enumerator of TKey that iterates through the collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also