Skip to content

Glossary: C# Basics

TryGetValue

A dictionary method that checks for a key and reads its value at once. It returns true or false and passes the value back through an `out` variable.

Where the book teaches it

Related terms

DictionaryoutCommon exception types