5 implementations of
System.Linq (2)
System\Linq\Lookup.cs (2)
134public IEnumerable<TElement> this[TKey key] => GetGrouping(key, create: false) ?? Enumerable.Empty<TElement>(); 306public IEnumerable<TElement> this[TKey key] => [];
System.Linq.AsyncEnumerable (2)
System\Linq\ToLookupAsync.cs (2)
252public IEnumerable<TElement> this[TKey key] => []; 350public IEnumerable<TElement> this[TKey key] => GetGrouping(key, create: false) ?? Enumerable.Empty<TElement>();
System.Linq.Parallel (1)
System\Linq\Parallel\Utils\Lookup.cs (1)
64public IEnumerable<TElement> this[TKey key]
24 references to
Aspire.Hosting (3)
Orchestrator\ApplicationOrchestrator.cs (3)
232foreach (var child in _parentChildLookup[resource]) 255foreach (var child in _parentChildLookup[resource]) 303if (_parentChildLookup[resource] is { } children)
Aspire.Hosting.Tests (3)
Orchestrator\RelationshipEvaluatorTests.cs (3)
34Assert.Collection(parentChildLookup[parentResource.Resource], 43Assert.Single(parentChildLookup[childWithAnnotationsResource.Resource], grandChildWithAnnotationsResource.Resource); 45Assert.Empty(parentChildLookup[grandChildWithAnnotationsResource.Resource]);
CSharpSyntaxGenerator (1)
TestWriter.cs (1)
187var subTypes = ChildMap[type];
installer.tasks (2)
GenerateTestSharedFrameworkDepsFile.cs (2)
57var managedFileNames = isAssemblyTofileNames[true]; 58var nativeFileNames = isAssemblyTofileNames[false];
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\DefaultViewComponentSelector.cs (1)
79var matches = candidates[name];
Microsoft.CodeAnalysis.Features (2)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
197getReferencesByDocument[referenceDocument], 198setReferencesByDocument[referenceDocument],
Microsoft.CodeAnalysis.UnitTests (10)
CachingLookupTests.cs (6)
109CheckEqualEnumerable(look1[k], look2[k]); 116Assert.Empty(look1[k]); 125CheckEqualEnumerable(look1[k], look2[k]); 130CheckEqualEnumerable(look1[k], look2[k]); 140CheckEqualEnumerable(look1[k], look2[k]); 145CheckEqualEnumerable(look1[k], look2[k]);
Collections\List\CollectionAsserts.cs (4)
88Assert.Equal(e[null].Count(), a[null].Count()); 107Assert.Equal(e[null].Count(), a[null].Count());
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
110ProjectProperty property = properties[propertyName].FirstOrDefault();
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
222MethodInfo[] matchingMethods = s_seqMethods[name]