Click here to Skip to main content
15,889,595 members
Articles / Programming Languages / C#

Identifying static variables in a reuseable component

Rate me:
Please Sign up or sign in to vote.
3.67/5 (2 votes)
17 May 2010CPOL2 min read 9.8K   2  
In a class, when we preceed a class member (variables/methods) with the keyword "static" in C# or "shared" in VB.Net then the 2 things gets added to the behavior of the variable:-The class member could be accessed without creating instance of the class. The class member will shared across...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions