C# 2.0 now supports static classes. Here are static classes properties.
1) A static class cannot be instantiated. That means you cannot create an instance of a static class using new operator.
2) A static class is a sealed class. That means you cannot inherit any class from a static class.
3) A static class can have static members only. Having non-static member will generate a compiler error.
4) A static class is less resource consuming and faster to compile and execute.
1) A static class cannot be instantiated. That means you cannot create an instance of a static class using new operator.
2) A static class is a sealed class. That means you cannot inherit any class from a static class.
3) A static class can have static members only. Having non-static member will generate a compiler error.
4) A static class is less resource consuming and faster to compile and execute.