All Questions
Tagged with static-keyword c#
4 questions
6
votes
2
answers
14k
views
Static variable - Usage and Implications on Threading
I have some confusion regarding the use of static variables/references in a class. It feels like I may not have entirely figured out the implications of keeping something static.
When I say a ...
16
votes
6
answers
52k
views
Understanding the static keyword
I have some experience in developing with Java, Javascript and PHP.
I am reading Microsoft Visual C# 2010 Step by Step which I feel it is a very good book on introducing you to the C# language.
I ...
128
votes
10
answers
111k
views
Don't Use "Static" in C#?
I submitted an application I wrote to some other architects for code review. One of them almost immediately wrote me back and said "Don't use static. You can't write automated tests with static ...
51
votes
4
answers
125k
views
Why and when should I make a class 'static'? What is the purpose of 'static' keyword on classes?
The static keyword on a member in many languages mean that you shouldn't create an instance of that class to be able to have access to that member. However, I don't see any justification to make an ...