86 references to KeyNotFoundException
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new KeyNotFoundException());
GenerateDocumentationAndConfigFiles (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Metrics (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Metrics.Legacy (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.AspNetCore.Components.Forms (1)
EditContextProperties.cs (1)
25get => _contents is null ? throw new KeyNotFoundException() : _contents[key];
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.AspNetCore.Http (1)
HeaderDictionary.cs (1)
380throw new KeyNotFoundException();
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
AttributeDictionary.cs (1)
31throw new KeyNotFoundException();
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
172static void ThrowNotFound() => throw new KeyNotFoundException();
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpHeaders.cs (1)
107throw new KeyNotFoundException();
Microsoft.Build.Engine.UnitTests (1)
BackEnd\TaskThatReturnsDictionaryTaskItem.cs (1)
81return index == -1 ? throw new KeyNotFoundException() : (object)_values[index];
Microsoft.CodeAnalysis (1)
InternalUtilities\ConcurrentLruCache.cs (1)
153throw new KeyNotFoundException();
Microsoft.CodeAnalysis.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.BannedApiAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.PublicApiAnalyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
153throw new KeyNotFoundException();
Microsoft.Extensions.AI (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1113public int this[string key] => key == nameof(BaseValue) ? BaseValue : throw new KeyNotFoundException();
Microsoft.Extensions.AI.AzureAIInference (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.AI.Ollama (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.AI.OpenAI (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Extensions.Http.Diagnostics (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.ContextualOptions.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.Logging.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.MetadataExtractor.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.Metrics.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.Gen.MetricsReports.Unit.Tests (2)
src\Shared\EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Microsoft.VisualStudio.LanguageServices (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentLruCache.cs (1)
153throw new KeyNotFoundException();
PresentationCore (1)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
686throw new KeyNotFoundException();
PresentationFramework (9)
MS\Internal\WeakDictionary.cs (1)
251throw new KeyNotFoundException();
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
38throw new KeyNotFoundException();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (7)
127throw new KeyNotFoundException(); 186throw new KeyNotFoundException(); 224throw new KeyNotFoundException(); 270throw new KeyNotFoundException(); 288throw new KeyNotFoundException(); 306throw new KeyNotFoundException(); 326throw new KeyNotFoundException();
Roslyn.Diagnostics.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Shared (2)
EmptyCollections\EmptyReadonlyDictionary.cs (2)
22public TValue this[TKey key] => throw new KeyNotFoundException(); 35get => throw new KeyNotFoundException();
Shared.Tests (1)
JsonSchemaExporter\TestTypes.cs (1)
1113public int this[string key] => key == nameof(BaseValue) ? BaseValue : throw new KeyNotFoundException();
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
2360get => TryGetValue(key, out TValue? value) ? value : throw new KeyNotFoundException();
System.Collections.Immutable (1)
System\Collections\ThrowHelper.cs (1)
22throw new KeyNotFoundException();
System.Private.Windows.Core (1)
System\Private\Windows\BinaryFormat\Serializer\ClassRecord.cs (1)
42throw new KeyNotFoundException();
System.Text.Json (4)
System\Text\Json\Document\JsonElement.cs (3)
142throw new KeyNotFoundException(); 180throw new KeyNotFoundException(); 220throw new KeyNotFoundException();
System\Text\Json\ThrowHelper.Node.cs (1)
28throw new KeyNotFoundException();
System.Windows.Forms (1)
System\Windows\Forms\ToolTip\KeyboardToolTipStateMachine.cs (1)
77(_, _) => throw new KeyNotFoundException()
Test.Utilities (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();
Text.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BidirectionalMap.cs (2)
134throw new KeyNotFoundException(); 147throw new KeyNotFoundException();