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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…