LANGUAGE

Static class

Groups static members and cannot be instantiated.

Formal Syntax & Structure

csharp syntaxcsharp
static class Name { ... }

Working Example

Example Snippetcsharp
static class BoxMath { public static int Double(int n) => n * 2; }
C# & .NET Reference