Static
Why and When do we want use static variable and a static member?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted May 21, 2012, 5:21 AM
Jignesh TrivediPosted May 21, 2012, 5:04 AM
static variables are used when only one copy of the variable is required.
A static variable remains in existence and retains its most recent value. The next time your code calls the procedure, the variable is not reinitialized, and it still holds the latest value you assigned to it. A static variable continues to exist for the lifetime of the class or module in which it is defined.
hope this help.
Satyapriya NayakPosted May 21, 2012, 4:11 AM
Please refer the below links
http://msdn.microsoft.com/en-us/library/79b3xss3%28v=vs.80%29.aspx
http://www.functionx.com/csharp/topics/staticcvariables.htm
http://csharp.net-tutorials.com/classes/static-members/
Thanks