System.Runtime.CompilerServices.IsVolatile Class

public sealed class IsVolatile

Base Types

Object
  IsVolatile

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

Marks a field as volatile.

Description

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 use volatile. 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.

See Also

System.Runtime.CompilerServices Namespace