LookupExtensionsToReadOnlyLookupTSource, TKey(IEnumerableTSource, FuncTSource, TKey) Method
Namespace: Jodosoft.CollectionsAssembly: 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
)
<ExtensionAttribute>
Public Shared Function ToReadOnlyLookup(Of TSource, TKey) (
source As IEnumerable(Of TSource),
keySelector As Func(Of TSource, TKey)
) As IReadOnlyLookup(Of TKey, TSource)
public:
[ExtensionAttribute]
generic<typename TSource, typename TKey>
static IReadOnlyLookup<TKey, TSource>^ ToReadOnlyLookup(
IEnumerable<TSource>^ source,
Func<TSource, TKey>^ keySelector
)
[<ExtensionAttribute>]
static member ToReadOnlyLookup :
source : IEnumerable<'TSource> *
keySelector : Func<'TSource, 'TKey> -> IReadOnlyLookup<'TKey, 'TSource>
- source IEnumerableTSource
-
- keySelector FuncTSource, TKey
-
- TSource
- TKey
IReadOnlyLookupTKey,
TSourceIn 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).