Implemented interface members:
26 references to TryGetValue
Microsoft.AspNetCore.Components (1)
ResourceAssetCollection.cs (1)
57public string this[string key] => _uniqueUrlMappings.TryGetValue(key, out var value) ? value.Url : key;
Microsoft.AspNetCore.Hosting (1)
Internal\HostingMetrics.cs (1)
136if (KnownMethods.TryGetValue(method, out var result))
Microsoft.AspNetCore.OutputCaching (1)
OutputCacheEntryFormatter.cs (1)
197if (CommonHeadersLookup.TryGetValue(value, out int known))
Microsoft.AspNetCore.Routing (2)
EndpointNameAddressScheme.cs (1)
29entries.TryGetValue(address, out var result);
RouteValuesAddressScheme.cs (1)
36else if (state.NamedMatches.TryGetValue(address.RouteName, out var namedMatchResults))
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\Response.cs (2)
512if (!HttpApiTypes.KnownResponseHeaders.TryGetValue(headerName, out lookup) || 535if (!HttpApiTypes.KnownResponseHeaders.TryGetValue(headerName, out lookup) ||
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.cs (1)
594var isKnownHeader = HttpApiTypes.KnownResponseHeaders.TryGetValue(headerPair.Key, out var knownHeaderIndex);
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
LspServices\LspServices.cs (3)
139if (_baseServices.TryGetValue(typeName, out var baseServices)) 148if (_lazyMefLspServices.TryGetValue(typeName, out var lazyService)) 202return _baseServices.TryGetValue(typeName, out var baseServices)
src\LanguageServer\Microsoft.CommonLanguageServerProtocol.Framework\RequestExecutionQueue.cs (2)
414if (handlersForMethod.TryGetValue(language, out var lazyData) || 415handlersForMethod.TryGetValue(LanguageServerConstants.DefaultLanguageName, out lazyData))
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
RequestExecutionQueue.cs (2)
414if (handlersForMethod.TryGetValue(language, out var lazyData) || 415handlersForMethod.TryGetValue(LanguageServerConstants.DefaultLanguageName, out lazyData))
Microsoft.Extensions.Compliance.Redaction (1)
RedactorProvider.cs (1)
30if (_classRedactors.TryGetValue(classifications, out var result))
Microsoft.Extensions.Diagnostics.ExceptionSummarization (4)
ExceptionSummarizer.cs (2)
42if (_exceptionTypesToProviders.TryGetValue(type, out var exceptionSummaryProvider)) 54if (_exceptionTypesToProviders.TryGetValue(innerExceptionType, out var innerExceptionSummaryProvider))
HttpExceptionSummaryProvider.cs (2)
96if (_webExceptionStatusMap.TryGetValue(ex.Status, out var index)) 106if (_socketErrorMap.TryGetValue(ex.SocketErrorCode, out var index))
Microsoft.Extensions.Http.Diagnostics (3)
Http\DownstreamDependencyMetadataManager.cs (1)
350if (!_frozenProcessedMetadataMap.TryGetValue(hostMetadata.DependencyName, out var routeMetadataTrieRoot))
Latency\Internal\HttpRequestLatencyListener.cs (2)
152if (eventName != null && _eventToTokenMap.TryGetValue(eventSourceName, out var events)) 154if (events.TryGetValue(eventName, out var token))
Microsoft.Extensions.Telemetry (1)
Latency\Internal\Registry.cs (1)
68if (_keyOrder.TryGetValue(key, out var order))
System.Collections.Immutable (2)
System\Collections\Frozen\FrozenDictionary.cs (2)
428return key is TKey tkey && TryGetValue(tkey, out TValue? value) ? 523TryGetValue(item.Key, out TValue? value) &&