Show / Hide Table of Contents

Class LookupExtensions

Denotes extensions to create a lookup

Inheritance
object
LookupExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Expressions.Linq
Assembly: NMF.Expressions.Utilities.dll
Syntax
public static class LookupExtensions

Methods

| Edit this page View Source

ToLookup<TSource, TKey>(IEnumerableExpression<TSource>, Expression<Func<TSource, TKey>>)

Creates a lookup of the given collection

Declaration
public static ILookupExpression<TSource, TKey> ToLookup<TSource, TKey>(this IEnumerableExpression<TSource> source, Expression<Func<TSource, TKey>> keySelector)
Parameters
Type Name Description
IEnumerableExpression<TSource> source

The underlying source collection

Expression<Func<TSource, TKey>> keySelector

A predicate to select the key of an element

Returns
Type Description
ILookupExpression<TSource, TKey>

A lookup expression

Type Parameters
Name Description
TSource

The source type of elements

TKey

The key type

| Edit this page View Source

ToLookup<TSource, TKey>(INotifyEnumerable<TSource>, Expression<Func<TSource, TKey>>)

Creates a lookup of the given collection

Declaration
public static INotifyLookup<TSource, TKey> ToLookup<TSource, TKey>(this INotifyEnumerable<TSource> source, Expression<Func<TSource, TKey>> keySelector)
Parameters
Type Name Description
INotifyEnumerable<TSource> source

The underlying source collection

Expression<Func<TSource, TKey>> keySelector

A predicate to select the key of an element

Returns
Type Description
INotifyLookup<TSource, TKey>

A lookup expression

Type Parameters
Name Description
TSource

The source type of elements

TKey

The key type

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX