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; }Groups static members and cannot be instantiated.
static class Name { ... }static class BoxMath { public static int Double(int n) => n * 2; }