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)
228public IEnumerable<TElement> this[TKey key] => []; 326public 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]
33 references to
Aspire.Hosting (4)
Devcontainers\DevcontainerSettingsWriter.cs (1)
161foreach (var oldPort in portsByLabel[label])
Orchestrator\ApplicationOrchestrator.cs (3)
598foreach (var child in _parentChildLookup[resource].Where(c => c is IResourceWithParent)) 673if (_parentChildLookup[resource] is { } children) 695if (_parentChildLookup[resource] is { } children)
Aspire.Hosting.Azure (3)
AzureResourcePreparer.cs (1)
153var roleAssignments = azureReferencesWithRoleAssignments[azureReference];
Provisioning\Provisioners\AzureProvisioner.cs (2)
58var childResources = _parentChildLookup[resource.Resource].ToList(); 65foreach (var grandChild in _parentChildLookup[child])
Aspire.Hosting.Tests (11)
Orchestrator\RelationshipEvaluatorTests.cs (11)
34Assert.Collection(parentChildLookup[parentResource.Resource], 38Assert.Single(parentChildLookup[childResource.Resource], grandChildResource.Resource); 39Assert.Single(parentChildLookup[grandChildResource.Resource], greatGrandChildResource.Resource); 41Assert.Empty(parentChildLookup[greatGrandChildResource.Resource]); 43Assert.Single(parentChildLookup[childWithAnnotationsResource.Resource], grandChildWithAnnotationsResource.Resource); 45Assert.Empty(parentChildLookup[grandChildWithAnnotationsResource.Resource]); 66Assert.Collection(parentChildLookup[parentResource.Resource], 89Assert.Collection(parentChildLookup[parentResource.Resource], 112Assert.Collection(parentChildLookup[parentResource.Resource], 135Assert.Single(parentChildLookup[grandParentResource.Resource], parentResource.Resource); 136Assert.Single(parentChildLookup[parentResource.Resource], childResource.Resource);
CSharpSyntaxGenerator (1)
TestWriter.cs (1)
187var subTypes = ChildMap[type];
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ViewComponents\DefaultViewComponentSelector.cs (1)
79var matches = candidates[name];
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\AnalysisEntityMapAbstractDomain.cs (1)
95var equivalentKeys2 = map2LookupIgnoringInstanceLocation[key1.EqualsIgnoringInstanceLocationId];
Microsoft.CodeAnalysis.Features (2)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
197getReferencesByDocument[referenceDocument], 198setReferencesByDocument[referenceDocument],
Microsoft.DotNet.ApiCompatibility (1)
ApiComparer.cs (1)
137sortedCompatDifferences.AddRange(compatDifferencesLookup[elementContainer.MetadataInformation]);
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
110ProjectProperty property = properties[propertyName].FirstOrDefault();
NuGet.Build.Tasks.Pack (2)
PackTaskLogic.cs (2)
958var libraryIdentities = projectPathToLibraryIdentities[projectReference.ProjectPath]; 961.Select(identity => libraryIdentityToTargetLibrary[identity].FirstOrDefault())
NuGet.Commands (1)
RestoreCommand\ProjectRestoreCommand.cs (1)
132var runtimeIds = runtimesByFramework[graph.Framework];
NuGet.Frameworks (2)
CompatibilityListProvider.cs (2)
44return lookup[false] 47.Concat(lookup[true]);
NuGet.PackageManagement (2)
Utility\FileSystemUtility.cs (1)
284var directoryFiles = directoryLookup.Contains(directory) ? directoryLookup[directory] : Enumerable.Empty<string>();
Utility\MSBuildNuGetProjectSystemUtility.cs (1)
243? directoryLookup[directory]
System.Linq.Queryable (1)
System\Linq\EnumerableRewriter.cs (1)
222MethodInfo[] matchingMethods = s_seqMethods[name]