Click or drag to resize

IndexByExtension Class

IndexBy extension.
Inheritance Hierarchy
System.Object
  MoreLinq.Extensions.IndexByExtension

Namespace:  MoreLinq.Extensions
Assembly:  MoreLinq (in MoreLinq.dll) Version: 3.3.1+b77df70598ab84c28cd43dcf74594024b6d575e1
Syntax
public static class IndexByExtension
Methods
  NameDescription
Public methodStatic memberIndexBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>)
Applies a key-generating function to each element of a sequence and returns a sequence that contains the elements of the original sequence as well its key and index inside the group of its key.
Public methodStatic memberIndexBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IEqualityComparer<TKey>)
Applies a key-generating function to each element of a sequence and returns a sequence that contains the elements of the original sequence as well its key and index inside the group of its key. An additional parameter specifies a comparer to use for testing the equivalence of keys.
Top
See Also