C#idiomatic C#
defaultcsharp/language-reference/keywords

Language

default (C# reference)

default - C# reference

  • page csharp/language-reference/keywords/default
  • updated 01/21/2026

Use the default keyword in the following contexts:


ms.custom: "updateeachrelease"

The C# language reference documents the most recently released version of the C# language. It also contains initial documentation for features in public previews for the upcoming language release.

The documentation identifies any feature first introduced in the last three versions of the language or in current public previews.

See also