Carlo is right. I was not aware about that.
So if you are emitting byte code that accesses volatile fields it's up to you to prefix these op codes with ".volatile" For more info you can read this: http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.isvolatile.aspx Best On Mon, May 28, 2012 at 2:51 PM, Carlo Kok <[email protected]> wrote: > Op 27-5-2012 2:47, Simon schreef: > >> awesome. thanks >> >> > volatile is just an indication. There's an opcode prefix for access to > such fields that actually makes it volatile. > > -- > -- > mono-cecil -- *Adriano Carlos Verona* » *db4objects* http://programing-fun.blogspot.com F: +55 (43) 3304-2240 M: +55 (43) 9981-4524 90, Claudia Rizzi street Londrina, ParanĂ¡, Brazil Contact Me [image: Linkedin] <http://www.linkedin.com/in/adrianoc> -- -- mono-cecil
