Skip to content

Glossary: C# Beyond the Basics

KeyNotFoundException

The exception .NET uses for "no such key". `Inventory.Sell` throws it when the SKU isn't in the dictionary.

Where the book teaches it

Related terms

Assert