Subterranean IL: Volatile
- by Simon Cooper
This time, we'll be having a look at the volatile. prefix instruction, and one of the differences between volatile in IL and C#.
The volatile. prefix
volatile is a tricky one, as there's varying levels of documentation on it. From what I can see, it has two effects:
It prevents caching of the load or store value; rather than reading or writing to…