Thursday, May 26, 2011

Static Classes and Static Members

http://msdn.microsoft.com/en-US/library/79b3xss3(v=VS.80).aspx

Static Classes

 
The main features of a static class are:


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

Spring Boot Interceptors vs .NET Action Filters

Spring Boot Interceptors and .NET Action Filters are highly equivalent in terms of purpose, design, and behavior. Both allow you to ru...