LookupExtensionsToReadOnlyLookupTSource, TKey(IEnumerableTSource, FuncTSource, TKey) Method

Definition

Namespace: Jodosoft.Collections
Assembly: Jodosoft.Collections (in Jodosoft.Collections.dll) Version: 2.0
public static IReadOnlyLookup<TKey, TSource> ToReadOnlyLookup<TSource, TKey>(
	this IEnumerable<TSource> source,
	Func<TSource, TKey> keySelector
)

Parameters

source  IEnumerableTSource
 
keySelector  FuncTSource, TKey
 

Type Parameters

TSource
TKey

Return Value

IReadOnlyLookupTKey, TSource

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableTSource. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also