Static Classes and Members in C# — a practical guide to C# static classes members with clear examples you can reuse in real projects.
C# Tutorial Series (66/121). Prefer one article? Read the complete C# tutorial.
Short description
Static classes cannot be instantiated; watch thread-safety for static mutable state.
Static
static class MathUtil
{
public static int Square(int n) => n * n;
}