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)
70 references to TryGetValue
ILCompiler.Compiler (11)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
583
if (!_baseRelocMap.
TryGetValue
(pageRva, out var list))
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.UpdateResourceDataModel.cs (9)
22
if (!_resTypeHeadID.
TryGetValue
((ushort)type, out resType))
31
if (!_resTypeHeadName.
TryGetValue
((string)type, out resType))
42
if (!resType.NameHeadID.
TryGetValue
((ushort)name, out resName))
51
if (!resType.NameHeadName.
TryGetValue
((string)name, out resName))
67
_resTypeHeadID.
TryGetValue
((ushort)type, out resType);
72
_resTypeHeadName.
TryGetValue
((string)type, out resType);
82
resType.NameHeadID.
TryGetValue
((ushort)name, out resName);
87
resType.NameHeadName.
TryGetValue
((string)name, out resName);
93
if (!resName.Languages.
TryGetValue
(language, out ResLanguage resLanguage))
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (1)
61
if (!nameTable.
TryGetValue
(name, out relatedNameReferences))
ILCompiler.ReadyToRun (12)
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
583
if (!_baseRelocMap.
TryGetValue
(pageRva, out var list))
src\runtime\src\coreclr\tools\Common\Compiler\ObjectWriter\WasmObjectWriter.cs (1)
810
if (!_baseRelocMap.
TryGetValue
(pageRva, out List<ushort> list))
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.UpdateResourceDataModel.cs (9)
22
if (!_resTypeHeadID.
TryGetValue
((ushort)type, out resType))
31
if (!_resTypeHeadName.
TryGetValue
((string)type, out resType))
42
if (!resType.NameHeadID.
TryGetValue
((ushort)name, out resName))
51
if (!resType.NameHeadName.
TryGetValue
((string)name, out resName))
67
_resTypeHeadID.
TryGetValue
((ushort)type, out resType);
72
_resTypeHeadName.
TryGetValue
((string)type, out resType);
82
resType.NameHeadID.
TryGetValue
((ushort)name, out resName);
87
resType.NameHeadName.
TryGetValue
((string)name, out resName);
93
if (!resName.Languages.
TryGetValue
(language, out ResLanguage resLanguage))
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (1)
61
if (!nameTable.
TryGetValue
(name, out relatedNameReferences))
Microsoft.Build.Framework (1)
Utilities\VersionUtilities.cs (1)
44
if (versionValues.
TryGetValue
(candidateVersion, out List<string> versionList))
Microsoft.Build.Tasks.Core (2)
ResolveSDKReference.cs (1)
1390
bool containsKey = architectureLocations.
TryGetValue
(architectureComponent, out string architectureLocation);
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (1)
459
if (targetFrameworkVersionToRegistryVersions.
TryGetValue
(candidateVersion, out listOfFrameworks))
Microsoft.Build.Utilities.Core (1)
src\msbuild\src\Shared\AssemblyFolders\AssemblyFoldersEx.cs (1)
459
if (targetFrameworkVersionToRegistryVersions.
TryGetValue
(candidateVersion, out listOfFrameworks))
Microsoft.DotNet.Build.Tasks.Packaging (23)
GetLastStablePackage.cs (1)
148
if (index.Packages.
TryGetValue
(packageId, out info))
PackageIndex.cs (16)
161
if (Packages.
TryGetValue
(otherPackage.Key, out info))
230
if (Packages.
TryGetValue
(assemblyName, out info))
247
if (Packages.
TryGetValue
(packageId, out info))
266
if (Packages.
TryGetValue
(assemblyName, out info))
286
if (Packages.
TryGetValue
(assemblyName, out info))
306
if (Packages.
TryGetValue
(assemblyName, out info))
319
if (Packages.
TryGetValue
(packageId, out info))
332
if (Packages.
TryGetValue
(packageId, out info))
352
if (Packages.
TryGetValue
(packageId, out info))
433
if (AssemblyVersionInPackageVersion.
TryGetValue
(assemblyVersion, out existingPackageVersion))
460
if (!AssemblyVersionInPackageVersion.
TryGetValue
(assemblyVersion, out packageVersion))
477
if (!AssemblyVersionInPackageVersion.
TryGetValue
(assemblyVersion, out packageVersion))
501
if (!inboxVersions.
TryGetValue
(frameworkKey, out mappings))
588
if (!inboxVersions.
TryGetValue
(key, out mappings))
603
if (!inboxVersions.
TryGetValue
(key, out mappings))
610
if (mappings.
TryGetValue
(normalizedFramework.Version, out assemblyVersionInbox))
UpdatePackageIndex.cs (2)
298
if (index.Packages.
TryGetValue
(dllName, out identityInfo))
344
if (!index.Packages.
TryGetValue
(id, out info))
ValidateFrameworkPackage.cs (1)
56
if (!_index.Packages.
TryGetValue
(name, out packageInfo))
ValidatePackage.cs (3)
381
if (!index.Packages.
TryGetValue
(PackageId, out info))
398
if (!info.AssemblyVersionInPackageVersion.
TryGetValue
(fileVersion, out packageVersion))
588
if (_index != null && _index.Packages.
TryGetValue
(ContractName, out packageInfo))
Microsoft.ML.Tokenizers (3)
Model\BPETokenizer.cs (1)
755
if (VocabReverse.
TryGetValue
(id, out string? value))
Model\EnglishRobertaTokenizer.cs (1)
278
if (_vocabReverse.
TryGetValue
(id, out var value))
Model\SentencePieceUnigramModel.cs (1)
67
ByteCodeToIdOffset = _vocab.
TryGetValue
("<0x00>", out int id) ? id : MaxByteId;
Microsoft.NET.HostModel (10)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.UpdateResourceDataModel.cs (9)
22
if (!_resTypeHeadID.
TryGetValue
((ushort)type, out resType))
31
if (!_resTypeHeadName.
TryGetValue
((string)type, out resType))
42
if (!resType.NameHeadID.
TryGetValue
((ushort)name, out resName))
51
if (!resType.NameHeadName.
TryGetValue
((string)name, out resName))
67
_resTypeHeadID.
TryGetValue
((ushort)type, out resType);
72
_resTypeHeadName.
TryGetValue
((string)type, out resType);
82
resType.NameHeadID.
TryGetValue
((ushort)name, out resName);
87
resType.NameHeadName.
TryGetValue
((string)name, out resName);
93
if (!resName.Languages.
TryGetValue
(language, out ResLanguage resLanguage))
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (1)
61
if (!nameTable.
TryGetValue
(name, out relatedNameReferences))
NuGet.ProjectModel (1)
DependencyGraphSpec.cs (1)
78
_projects.
TryGetValue
(projectUniqueName, out project);
NuGet.Protocol (2)
RemoteRepositories\PluginFindPackageByIdResource.cs (2)
274
if (packageInfos.
TryGetValue
(version, out packageInfo))
367
return packageInfos.
TryGetValue
(version, out var packageInfo);
NuGet.Resolver (1)
ResolverPackage.cs (1)
87
_dependencyIds.
TryGetValue
(id, out range);
System.Collections (1)
System\Collections\Generic\SortedDictionary.cs (1)
303
if (
TryGetValue
((TKey)key, out value))
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
861
if (dictionary.
TryGetValue
(item.Key, out value!))
System.Speech (1)
Internal\GrammarBuilding\BuilderElements.cs (1)
237
if (!dict.
TryGetValue
(current.Count, out Collection<BuilderElements?>? builderElements))