public sealed class IsVolatile
Object
IsVolatile
mscorlib
RuntimeInfrastructure
Marks a field as volatile.
IsVolatile is a class used only in custom modifiers of method signatures to indicate that the field it marks is "volatile". Any compiler that imports metadata with one or more fields marked as "volatile" is required to usevolatile.
prefixed instructions to access such fields.[Note: For most languages, it is recommended that the notion of "volatile" be attached to fields using language syntax instead of custom modifiers.
The types in
System.Runtime.CompilerServices
are intended primarily for use by compilers, not application programmers. They allow compilers to easily implement certain language features that are not directly visible to programmers.]
For more information on custom modifiers, see Partition II of the CLI Specification.
System.Runtime.CompilerServices Namespace