4 implementations of ILookup
System.Linq (2)
System.Linq.AsyncEnumerable (1)
System.Linq.Parallel (1)
69 references to ILookup
Aspire.Hosting (3)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Redis (1)
CSharpSyntaxGenerator (2)
installer.tasks (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.Features (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.UnitTests (11)
CachingLookupTests.cs (7)
69private ILookup<string, int> CreateLookup(int[] numbers, bool randomCase)
104private void CompareLookups1(ILookup<string, int> look1, CachingDictionary<string, int> look2, SegmentedHashSet<string> keys)
121private void CompareLookups2(ILookup<string, int> look1, CachingDictionary<string, int> look2, SegmentedHashSet<string> keys)
136private void CompareLookups2(CachingDictionary<string, int> look1, ILookup<string, int> look2, SegmentedHashSet<string> keys)
162var look1 = CreateLookup(numbers, false);
194var look1 = CreateLookup(numbers, true);
226var look1 = CreateLookup(numbers, true);
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.DotNet.Arcade.Sdk (1)
netstandard (1)
System.Core (1)
System.Linq (6)
System\Linq\Lookup.cs (4)
12public static ILookup<TKey, TSource> ToLookup<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) =>
15public static ILookup<TKey, TSource> ToLookup<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey>? comparer)
35public static ILookup<TKey, TElement> ToLookup<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) =>
38public static ILookup<TKey, TElement> ToLookup<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey>? comparer)
System.Linq.AsyncEnumerable (20)
System\Linq\ToLookupAsync.cs (20)
16/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
21/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
25/// <returns>A <see cref="ILookup{TKey, TElement}"/> that contains keys and values.</returns>
28public static ValueTask<ILookup<TKey, TSource>> ToLookupAsync<TSource, TKey>(
39static async ValueTask<ILookup<TKey, TSource>> Impl(
55/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
60/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
64/// <returns>A <see cref="ILookup{TKey, TElement}"/> that contains keys and values.</returns>
67public static ValueTask<ILookup<TKey, TSource>> ToLookupAsync<TSource, TKey>(
78static async ValueTask<ILookup<TKey, TSource>> Impl(
95/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
101/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
106/// <returns>A <see cref="ILookup{TKey, TElement}"/> that contains keys and values.</returns>
109public static ValueTask<ILookup<TKey, TElement>> ToLookupAsync<TSource, TKey, TElement>(
122static async ValueTask<ILookup<TKey, TElement>> Impl(
139/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
145/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
150/// <returns>A <see cref="ILookup{TKey, TElement}"/> that contains keys and values.</returns>
153public static ValueTask<ILookup<TKey, TElement>> ToLookupAsync<TSource, TKey, TElement>(
166static async ValueTask<ILookup<TKey, TElement>> Impl(
System.Linq.Parallel (4)
System\Linq\ParallelEnumerable.cs (4)
5112public static ILookup<TKey, TSource> ToLookup<TSource, TKey>(
5137public static ILookup<TKey, TSource> ToLookup<TSource, TKey>(
5191public static ILookup<TKey, TElement> ToLookup<TSource, TKey, TElement>(
5223public static ILookup<TKey, TElement> ToLookup<TSource, TKey, TElement>(
System.Linq.Queryable (1)