Skip to content

Glossary: C# Beyond the Basics

default(T)

Also written: default

The empty value of a type: 0 for numbers and `null` for classes. In generic code you write it as `default(T)` or just `default`.

Where the book teaches it

Related terms

generictype parameter