volatile can only be applied to static members
Are there undocumented restrictions on “volatile”. Tried making a bool class field volatile, but the compiler complained until I made the field static, then it worked.
« Application properties sample values | Main | MSDN multi-threading Windows Forms article. »
Are there undocumented restrictions on “volatile”. Tried making a bool class field volatile, but the compiler complained until I made the field static, then it worked.