static class
A class that cannot be instantiated and holds only static members, which belong to the type itself rather than to any object.
In more detail
It suits stateless helpers and is required for extension methods. Static members are called on the type name, such as Pricing.Repeat(...).
Related terms
- extension method — A static method whose first parameter is marked this, so it can be called as though it were an instance method of that type.
Taught in
- Classes, Interfaces, and Object-Oriented C# — Modern .NET Core, C# & Enterprise Microservices
- Collections, Generics, and LINQ — Modern .NET Core, C# & Enterprise Microservices
- Code Quality: .editorconfig and Roslyn Analyzers — Modern .NET Core, C# & Enterprise Microservices