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
Post a Comment