3 implementations of ILookup
System.Linq (2)
System\Linq\Lookup.cs (2)
75public partial class Lookup<TKey, TElement> : ILookup<TKey, TElement> 302internal sealed class EmptyLookup<TKey, TElement> : ILookup<TKey, TElement>, ICollection<IGrouping<TKey, TElement>>, IReadOnlyCollection<IGrouping<TKey, TElement>>
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\Lookup.cs (1)
37internal sealed class Lookup<TKey, TElement> : ILookup<TKey, TElement> where TKey : notnull
48 references to ILookup
Aspire.Hosting (2)
Dcp\ApplicationExecutor.cs (2)
99private readonly ILookup<IResource?, IResourceWithParent> _parentChildLookup = GetParentChildLookup(model); 195private static ILookup<IResource?, IResourceWithParent> GetParentChildLookup(DistributedApplicationModel model)
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\AzureProvisioner.cs (1)
76private ILookup<IResource, IResourceWithParent>? _parentChildLookup;
Aspire.Hosting.Redis (1)
RedisBuilderExtensions.cs (1)
219var lookup = await pipeline.ExecuteAsync(async (ctx) =>
CSharpSyntaxGenerator (2)
AbstractFileWriter.cs (2)
20private readonly ILookup<string, string> _childMap; 43protected ILookup<string, string> ChildMap { get { return _childMap; } }
installer.tasks (1)
GenerateTestSharedFrameworkDepsFile.cs (1)
53var isAssemblyTofileNames = Directory.EnumerateFiles(SharedFrameworkDirectory)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
ViewComponents\DefaultViewComponentSelector.cs (3)
52private readonly ILookup<string, ViewComponentDescriptor> _lookupByShortName; 53private readonly ILookup<string, ViewComponentDescriptor> _lookupByFullName; 76ILookup<string, ViewComponentDescriptor> candidates,
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
479var documentLookup = referenceLocations.ToLookup(refLoc => refLoc.Document);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (1)
479var documentLookup = referenceLocations.ToLookup(refLoc => refLoc.Document);
Microsoft.CodeAnalysis.EditorFeatures (1)
InlineRename\InlineRenameSession.cs (1)
428var locationsByDocument = locations.ToLookup(l => l.Document.Id);
Microsoft.CodeAnalysis.Features (6)
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
217ILookup<ProjectId, (ReferenceLocation location, bool isExtensionMethod)> projectToLocations,
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (3)
173var getReferencesByDocument = getMethodReferences.SelectMany(r => r.Locations).ToLookup(loc => loc.Document); 188private static async Task<Solution> UpdateReferencesAsync(Solution updatedSolution, string propertyName, bool nameChanged, ILookup<Document, ReferenceLocation> getReferencesByDocument, ILookup<Document, ReferenceLocation> setReferencesByDocument, CancellationToken cancellationToken)
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (2)
96var referencesByDocument = q.ToLookup(t => t.location.Document); 193ILookup<Document, (IPropertySymbol property, ReferenceLocation location)> referencesByDocument,
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Diagnostics\DiagnosticSources\AbstractWorkspaceDocumentDiagnosticSource.cs (2)
32private static readonly ConditionalWeakTable<Project, AsyncLazy<ILookup<DocumentId, DiagnosticData>>> s_projectToDiagnostics = new(); 69AsyncLazy<ILookup<DocumentId, DiagnosticData>> GetLazyDiagnostics()
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);
Collections\List\CollectionAsserts.cs (4)
81ILookup<object?, object?> e = expected.Cast<object?>().ToLookup(key => key); 82ILookup<object?, object?> a = actual!.Cast<object?>().ToLookup(key => key); 100ILookup<object?, object?> e = expected.Cast<object?>().ToLookup(key => key); 101ILookup<object?, object?> a = actual!.Cast<object?>().ToLookup(key => key);
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SymbolEditor.cs (1)
463var declsByDocId = this.GetDeclarations(currentSymbol).ToLookup(d => ChangedSolution.GetDocument(d.SyntaxTree).Id);
Workspace\Solution\SolutionCompilationState.cs (1)
1691var documentIdsByProjectId = documentIds.ToLookup(id => id.ProjectId);
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
80System.Linq.ILookup<string, ProjectProperty> properties = null;
netstandard (1)
netstandard.cs (1)
1030[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.ILookup<,>))]
System.Core (1)
System.Core.cs (1)
168[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Linq.ILookup<,>))]
System.Linq (6)
System\Linq\DebugView.cs (2)
113private readonly ILookup<TKey, TElement> _lookup; 116public SystemLinq_LookupDebugView(ILookup<TKey, TElement> lookup)
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.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)
System\Linq\EnumerableRewriter.cs (1)
217private static ILookup<string, MethodInfo>? s_seqMethods;