The System.Runtime.CompilerServices namespace provides functionality for compiler writers using managed code to specify attributes in metadata that affect the run time behavior of the common language runtime.
This namespace is for compiler writers use only.
Class | Description |
---|---|
class AccessedThroughPropertyAttribute | Specifies the name of the property that accesses the attributed field. |
class CallConvCdecl | Indicates that the calling convention should be used for a method. |
class CallConvFastcall | This calling convention is not supported in this version of the .NET Framework. |
class CallConvStdcall | Indicates that the calling convention should be used for a method. |
class CallConvThiscall | Indicates that the calling convention should be used for a method. |
class CompilationRelaxationsAttribute | Controls the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler. |
class CompilerGlobalScopeAttribute | Indicates that a class should be treated as if it has global scope. |
class CustomConstantAttribute | Defines a constant value that a compiler can persist for a field or method parameter. |
class DateTimeConstantAttribute | Persists an 8-byte DateTime constant for a field or parameter. |
class DecimalConstantAttribute | Stores the value of a Decimal constant in metadata. |
class DiscardableAttribute | Marks a type definition as discardable. |
class IndexerNameAttribute | Indicates the name by which an indexer is known in programming languages that do not support indexers directly. |
class IsVolatile | Marks a field as volatile. |
class MethodImplAttribute | Specifies the details of how a method is implemented. |
class RequiredAttributeAttribute | Specifies that an importing compiler must fully understand the symantics of a type definition, or refuse to use it. |
class RuntimeHelpers | Provides a set of static methods and properties that provide support for compilers. |
Enumeration | Description |
---|---|
enumeration MethodCodeType | Defines how a method is implemented. |
enumeration MethodImplOptions | Defines the details of how a method is implemented. |