5 implementations of ILookup
System.Linq (2)
System.Linq.AsyncEnumerable (2)
System.Linq.Parallel (1)
70 references to ILookup
Aspire.Hosting (3)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Tests (1)
CSharpSyntaxGenerator (2)
installer.tasks (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
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(
64/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
69/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
73/// <returns>A <see cref="ILookup{TKey, TElement}"/> that contains keys and values.</returns>
76public static ValueTask<ILookup<TKey, TSource>> ToLookupAsync<TSource, TKey>(
87static async ValueTask<ILookup<TKey, TSource>> Impl(
113/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
119/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
124/// <returns>A <see cref="ILookup{TKey, TElement}"/> that contains keys and values.</returns>
127public static ValueTask<ILookup<TKey, TElement>> ToLookupAsync<TSource, TKey, TElement>(
140static async ValueTask<ILookup<TKey, TElement>> Impl(
166/// Creates a <see cref="ILookup{TKey, TElement}"/> from an <see cref="IAsyncEnumerable{T}"/>
172/// <param name="source">The <see cref="IAsyncEnumerable{T}"/> to create a <see cref="ILookup{TKey, TElement}"/> from.</param>
177/// <returns>A <see cref="ILookup{TKey, TElement}"/> that contains keys and values.</returns>
180public static ValueTask<ILookup<TKey, TElement>> ToLookupAsync<TSource, TKey, TElement>(
193static 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)