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)
78 references to TryGetValue
ILCompiler.Compiler (11)
parent\parent\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
582if (!_baseRelocMap.TryGetValue(pageRva, out var list))
parent\parent\Common\Compiler\Win32Resources\ResourceData.UpdateResourceDataModel.cs (9)
22if (!_resTypeHeadID.TryGetValue((ushort)type, out resType)) 31if (!_resTypeHeadName.TryGetValue((string)type, out resType)) 42if (!resType.NameHeadID.TryGetValue((ushort)name, out resName)) 51if (!resType.NameHeadName.TryGetValue((string)name, out resName)) 67_resTypeHeadID.TryGetValue((ushort)type, out resType); 72_resTypeHeadName.TryGetValue((string)type, out resType); 82resType.NameHeadID.TryGetValue((ushort)name, out resName); 87resType.NameHeadName.TryGetValue((string)name, out resName); 93if (!resName.Languages.TryGetValue(language, out ResLanguage resLanguage))
parent\parent\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (1)
61if (!nameTable.TryGetValue(name, out relatedNameReferences))
ILCompiler.ReadyToRun (12)
parent\parent\Common\Compiler\ObjectWriter\PEObjectWriter.cs (1)
582if (!_baseRelocMap.TryGetValue(pageRva, out var list))
parent\parent\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (1)
661if (!_baseRelocMap.TryGetValue(pageRva, out List<ushort> list))
parent\parent\Common\Compiler\Win32Resources\ResourceData.UpdateResourceDataModel.cs (9)
22if (!_resTypeHeadID.TryGetValue((ushort)type, out resType)) 31if (!_resTypeHeadName.TryGetValue((string)type, out resType)) 42if (!resType.NameHeadID.TryGetValue((ushort)name, out resName)) 51if (!resType.NameHeadName.TryGetValue((string)name, out resName)) 67_resTypeHeadID.TryGetValue((ushort)type, out resType); 72_resTypeHeadName.TryGetValue((string)type, out resType); 82resType.NameHeadID.TryGetValue((ushort)name, out resName); 87resType.NameHeadName.TryGetValue((string)name, out resName); 93if (!resName.Languages.TryGetValue(language, out ResLanguage resLanguage))
parent\parent\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (1)
61if (!nameTable.TryGetValue(name, out relatedNameReferences))
Microsoft.Build.Framework (2)
Utilities\AssemblyFolders\AssemblyFoldersEx.cs (1)
460if (targetFrameworkVersionToRegistryVersions.TryGetValue(candidateVersion, out listOfFrameworks))
Utilities\VersionUtilities.cs (1)
44if (versionValues.TryGetValue(candidateVersion, out List<string> versionList))
Microsoft.Build.Tasks.Core (1)
ResolveSDKReference.cs (1)
1390bool containsKey = architectureLocations.TryGetValue(architectureComponent, out string architectureLocation);
Microsoft.Data.Analysis (1)
DataFrameColumn.cs (1)
531if (heapOfValueAndListOfTupleOfSortAndBufferIndex.TryGetValue(nextValue, out List<ValueTuple<int, int>> bufferIndices))
Microsoft.Diagnostics.DataContractReader.Contracts (2)
Contracts\CallingConvention\CallingConvention_1.cs (1)
543if (tokens.TryGetValue(offset, out GCRefMapToken token) && token != GCRefMapToken.Skip)
Contracts\GCInfo\X86\GCInfo.cs (1)
1122if (activePushedPtrs.TryGetValue(depthSlots, out var pushed))
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)
55if (!_index.Packages.TryGetValue(name, out packageInfo))
ValidatePackage.cs (3)
341if (!index.Packages.TryGetValue(PackageId, out info)) 358if (!info.AssemblyVersionInPackageVersion.TryGetValue(fileVersion, out packageVersion)) 548if (_index != null && _index.Packages.TryGetValue(ContractName, out packageInfo))
Microsoft.DotNet.ILAssembler (1)
Win32ResourceSectionBuilder.cs (1)
134if (!parent.Children.TryGetValue(key, out Node? node))
Microsoft.ML.Tokenizers (5)
Model\BpeTokenizer.cs (1)
755if (VocabReverse.TryGetValue(id, out string? value))
Model\EnglishRobertaTokenizer.cs (1)
278if (_vocabReverse.TryGetValue(id, out var value))
Model\SentencePieceUnigramModel.cs (3)
70ByteCodeToIdOffset = _vocab.TryGetValue("<0x00>", out int id) ? id : MaxByteId; 217ByteCodeToIdOffset = _vocab.TryGetValue("<0x00>", out int id) ? id : MaxByteId; 218if (!_vocab.ContainsKey("<0x00>") || !_vocab.TryGetValue("<0xFF>", out int maxByteId) || maxByteId - ByteCodeToIdOffset != 0xFF)
Microsoft.NET.HostModel (10)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.UpdateResourceDataModel.cs (9)
22if (!_resTypeHeadID.TryGetValue((ushort)type, out resType)) 31if (!_resTypeHeadName.TryGetValue((string)type, out resType)) 42if (!resType.NameHeadID.TryGetValue((ushort)name, out resName)) 51if (!resType.NameHeadName.TryGetValue((string)name, out resName)) 67_resTypeHeadID.TryGetValue((ushort)type, out resType); 72_resTypeHeadName.TryGetValue((string)type, out resType); 82resType.NameHeadID.TryGetValue((ushort)name, out resName); 87resType.NameHeadName.TryGetValue((string)name, out resName); 93if (!resName.Languages.TryGetValue(language, out ResLanguage resLanguage))
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.Win32Structs.cs (1)
61if (!nameTable.TryGetValue(name, out relatedNameReferences))
Microsoft.NET.ProjectData.Tasks (1)
ProjectDataWriter.cs (1)
1851 if (!node.Directories.TryGetValue(seg, out PathTrieNode? child))
Microsoft.SourceLink.Common (1)
GenerateSourceLinkFile.cs (1)
238if (revisions.TryGetValue(key, out var existing) && existing != mapping.Revision)
NativeIntegrations.DockerCompose (1)
DockerComposeGenerator.cs (1)
172if (serviceEnvironment.TryGetValue(variable, out var existing) && existing!.GetValue<string>() != target)
NuGet.ProjectModel (1)
DependencyGraphSpec.cs (1)
86_projects.TryGetValue(projectUniqueName, out project);
NuGet.Protocol (2)
RemoteRepositories\PluginFindPackageByIdResource.cs (2)
272if (packageInfos.TryGetValue(version, out packageInfo)) 365return packageInfos.TryGetValue(version, out var packageInfo);
NuGet.Resolver (1)
ResolverPackage.cs (1)
92_dependencyIds.TryGetValue(id, out VersionRange? range);
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!))
System.Speech (1)
Internal\GrammarBuilding\BuilderElements.cs (1)
237if (!dict.TryGetValue(current.Count, out Collection<BuilderElements?>? builderElements))