c# - Immutability and static variables -


I am preparing some irreversible classes but I have some variables like . The total number of instances but will the multi-threading affect a static variable?

Because the methods like add, remove, etc. have to be updated to . Command value. Maybe I should make it a lousy property?

If you are just doing a counter, then you may have an option instead of a lock Also reference to reference number of MSDN is in reference.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -