What is the purpose of volatile
keyword in C#?
Where would I need to use this keyword?
I saw the following statement, but I am unable to understand why volatile
is required here?
internal volatile string UserName;
See Question&Answers more detail:os