Skip to content

Glossary: C# Beyond the Basics

discard

Also written: _

The `_` pattern, which matches anything you don't need to name. It is usually the last arm of a switch expression, meaning "everything else".

Where the book teaches it

Related terms

switch expressionpattern