http://msdn.microsoft.com/en-US/library/79b3xss3(v=VS.80).aspx
Static Classes
Static Members
Static Classes
The main features of a static class are:
- They only contain static members.
- They cannot be instantiated.
- They are sealed.
- They cannot contain Instance Constructors (C# Programming Guide).
Static Members
A static method, field, property, or event is callable on a class even when no instance of the class has been created. If any instances of the class are created, they cannot be used to access the static member. Only one copy of static fields and events exists, and static methods and properties can only access static fields and static events.
No comments:
Post a Comment