c# – Volatile keyword usage vs lock
I’ve used volatile where I’m not sure it is necessary. Let me be very clear on this point: If you are not 100% clear on what volatile means in C# then do not use it. It is a sharp tool that is meant to be used by experts only. If you cannot describe what all … Read more