63 references to KeyNotFoundException
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\SynchronizedKeyedCollection.cs (1)
80throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(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.CodeStyle (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)
1105public 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 (2)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
687throw new KeyNotFoundException();
System\Windows\BinaryFormat\ClassRecord.cs (1)
39throw new KeyNotFoundException();
PresentationFramework (9)
MS\Internal\WeakDictionary.cs (1)
252throw new KeyNotFoundException();
System\Windows\Documents\Serialization\SerializerDescriptor.cs (1)
39throw new KeyNotFoundException();
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (7)
128throw new KeyNotFoundException(); 187throw new KeyNotFoundException(); 225throw new KeyNotFoundException(); 271throw new KeyNotFoundException(); 289throw new KeyNotFoundException(); 307throw new KeyNotFoundException(); 327throw 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)
1105public int this[string key] => key == nameof(BaseValue) ? BaseValue : throw new KeyNotFoundException();
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
2385get => TryGetValue(key, out TValue? value) ? value : throw new KeyNotFoundException();
System.Collections.Immutable (1)
System\Collections\ThrowHelper.cs (1)
30throw 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)
145throw new KeyNotFoundException(); 183throw new KeyNotFoundException(); 223throw 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()