New Features in C# 2.0—Create Static Classes
Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio
| CSharp-Online.NET:Tutorials |
| C# Tutorials |
| © 2005 O'Reilly Media, Inc. |
Create Static Classes
In addition to declaring methods as being static, now you also can declare classes as being static.
The purpose of a static class is to provide a set of static utility methods scoped to the name of the class, much as you see done with the Convert class in the Framework Class Library.
| In C# 2.0 you can declare an entire class as being static to signal that you’ve scoped a set of static utility methods to that class. |
|

