« Application properties sample values | Main | MSDN multi-threading Windows Forms article. »

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.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)