LinqExtensions.Lookup<TKey, T> Class

Defines an indexer, size property, and Boolean search method for LinqExtensions.Grouping<TKey, T> objects.

Definition

Namespace: Extreme.DataAnalysis.Linq
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public class Lookup<TKey, T> : IEnumerable<LinqExtensions.Grouping<TKey, T>>, 
	IEnumerable
Inheritance
Object  →  LinqExtensions.Lookup<TKey, T>
Implements
IEnumerable<LinqExtensions.Grouping<TKey, T>>, IEnumerable

Type Parameters

TKey
The type of the key.
T
The type of the elements of the collection.

Constructors

LinqExtensions.Lookup<TKey, T> Constructs a new lookup object.

Properties

Count Gets the number of key/value collection pairs.
Item Gets the sequence of values indexed by the specified key.

Methods

Contains Determines whether a specific key exists in the lookup.
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 
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)

Extension Methods

Group<LinqExtensions.Grouping<TKey, T>> Returns a grouping by the unique elements in a sequence.
(Defined by Grouping)
Group<LinqExtensions.Grouping<TKey, T>> Returns a grouping by the unique elements in a sequence using the specified comparer to determine equality.
(Defined by Grouping)
Sum<LinqExtensions.Grouping<TKey, T>> Computes the sum of the sequence of values.
(Defined by ArrayMath)
Sum<LinqExtensions.Grouping<TKey, T>, U> Computes the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by ArrayMath)

See Also