Implemented interface members:
method
TryGetValue
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>.TryGetValue(TKey, out TValue)
method
TryGetValue
System.Collections.Generic.IDictionary<TKey, TValue>.TryGetValue(TKey, out TValue)
35 references to TryGetValue
Microsoft.Build (1)
VersionUtilities.cs (1)
44if (versionValues.TryGetValue(candidateVersion, out List<string> versionList))
Microsoft.Build.CommandLine.UnitTests (1)
VersionUtilities.cs (1)
44if (versionValues.TryGetValue(candidateVersion, out List<string> versionList))
Microsoft.Build.Tasks.Core (3)
AssemblyFoldersEx.cs (1)
459if (targetFrameworkVersionToRegistryVersions.TryGetValue(candidateVersion, out listOfFrameworks))
ResolveSDKReference.cs (1)
1386bool containsKey = architectureLocations.TryGetValue(architectureComponent, out string architectureLocation);
VersionUtilities.cs (1)
44if (versionValues.TryGetValue(candidateVersion, out List<string> versionList))
Microsoft.Build.Utilities.Core (2)
AssemblyFoldersEx.cs (1)
459if (targetFrameworkVersionToRegistryVersions.TryGetValue(candidateVersion, out listOfFrameworks))
VersionUtilities.cs (1)
44if (versionValues.TryGetValue(candidateVersion, out List<string> versionList))
Microsoft.DotNet.Build.Tasks.Packaging (23)
GetLastStablePackage.cs (1)
148if (index.Packages.TryGetValue(packageId, out info))
PackageIndex.cs (16)
161if (Packages.TryGetValue(otherPackage.Key, out info)) 230if (Packages.TryGetValue(assemblyName, out info)) 247if (Packages.TryGetValue(packageId, out info)) 266if (Packages.TryGetValue(assemblyName, out info)) 286if (Packages.TryGetValue(assemblyName, out info)) 306if (Packages.TryGetValue(assemblyName, out info)) 319if (Packages.TryGetValue(packageId, out info)) 332if (Packages.TryGetValue(packageId, out info)) 352if (Packages.TryGetValue(packageId, out info)) 433if (AssemblyVersionInPackageVersion.TryGetValue(assemblyVersion, out existingPackageVersion)) 460if (!AssemblyVersionInPackageVersion.TryGetValue(assemblyVersion, out packageVersion)) 477if (!AssemblyVersionInPackageVersion.TryGetValue(assemblyVersion, out packageVersion)) 501if (!inboxVersions.TryGetValue(frameworkKey, out mappings)) 588if (!inboxVersions.TryGetValue(key, out mappings)) 603if (!inboxVersions.TryGetValue(key, out mappings)) 610if (mappings.TryGetValue(normalizedFramework.Version, out assemblyVersionInbox))
UpdatePackageIndex.cs (2)
298if (index.Packages.TryGetValue(dllName, out identityInfo)) 344if (!index.Packages.TryGetValue(id, out info))
ValidateFrameworkPackage.cs (1)
56if (!_index.Packages.TryGetValue(name, out packageInfo))
ValidatePackage.cs (3)
381if (!index.Packages.TryGetValue(PackageId, out info)) 398if (!info.AssemblyVersionInPackageVersion.TryGetValue(fileVersion, out packageVersion)) 588if (_index.Packages.TryGetValue(ContractName, out packageInfo))
Microsoft.ML.Tokenizers (2)
Model\BPETokenizer.cs (1)
598if (VocabReverse.TryGetValue(id, out string? value))
Model\EnglishRobertaTokenizer.cs (1)
278if (_vocabReverse.TryGetValue(id, out var value))
RunTests (1)
AssemblyScheduler.cs (1)
254if (currentFilters.TryGetValue(assembly, out var assemblyFilters))
System.Collections (1)
System\Collections\Generic\SortedDictionary.cs (1)
303if (TryGetValue((TKey)key, out value))
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
861if (dictionary.TryGetValue(item.Key, out value!))