System.Runtime.CompilerServices Namespace
Microsoft Silverlight will reach end of support after October 2021. Learn more.
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
The System.Runtime.CompilerServices namespace provides functionality for compiler writers who use managed code to specify attributes in metadata that affect the run-time behavior of the common language runtime.
Classes
Class | Description | |
---|---|---|
AccessedThroughPropertyAttribute | Infrastructure. Specifies the name of the property that accesses the attributed field. | |
CallSite | A dynamic call site base class. This type is used as a parameter type to the dynamic site targets. | |
CallSite<T> | Dynamic site type. | |
CallSiteBinder | Class responsible for runtime binding of the dynamic operations on the dynamic call site. | |
CallSiteHelpers | Class that contains helper methods for DLR CallSites. | |
CallSiteOps | Infrastructure. Creates and caches binding rules. | |
Closure | Infrastructure. Represents the runtime state of a dynamically generated method. | |
CodeGenerationAttribute | Specifies settings for code generation. | |
CompilationRelaxationsAttribute | Infrastructure. Controls the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler. | |
CompilerGeneratedAttribute | Infrastructure. Distinguishes a compiler-generated element from a user-generated element. This class cannot be inherited. | |
ConditionalWeakTable<TKey, TValue> | Enables compilers to dynamically attach object fields to managed objects. | |
CustomConstantAttribute | Infrastructure. Defines a constant value that a compiler can persist for a field or method parameter. | |
DateTimeConstantAttribute | Infrastructure. Persists an 8-byte DateTime constant for a field or parameter. | |
DebugInfoGenerator | Generates debug information for lambda expressions in an expression tree. | |
DecimalConstantAttribute | Infrastructure. Stores the value of a System.Decimal constant in metadata. This class cannot be inherited. | |
DynamicAttribute | Indicates that the use of Object on a member is meant to be treated as a dynamically dispatched type. | |
ExecutionScope | Infrastructure. Obsolete. Represents the runtime state of a dynamically generated method. | |
ExtensionAttribute | Infrastructure. Indicates that a method is an extension method, or that a class or assembly contains extension methods. | |
FixedAddressValueTypeAttribute | Infrastructure. Fixes the address of a static value type field throughout its lifetime. This class cannot be inherited. | |
FixedBufferAttribute | Infrastructure. Indicates that a field should be treated as containing a fixed number of elements of the specified primitive type. This class cannot be inherited. | |
IndexerNameAttribute | Infrastructure. Indicates the name by which an indexer is known in programming languages that do not support indexers directly. | |
InternalsVisibleToAttribute | Infrastructure. Specifies that types that are ordinarily visible only within the current assembly are visible to another assembly. | |
IsBoxed | Infrastructure. Indicates that the modified reference type is a boxed value type. This class cannot be inherited. | |
IsByValue | Infrastructure. Indicates that a modified method argument should be interpreted as having object passed-by-value semantics. This modifier is applied to reference types. This class cannot be inherited. | |
IsConst | Infrastructure. Indicates that the modified type has a const modifier. This class cannot be inherited. | |
IsExplicitlyDereferenced | Infrastructure. Indicates that a managed pointer represents a pointer parameter within a method signature. This class cannot be inherited. | |
IsImplicitlyDereferenced | Infrastructure. Indicates that the modified garbage collection reference represents a reference parameter within a method signature. This class cannot be inherited. | |
IsLong | Infrastructure. Indicates that a modified integer is a standard C++ long value. This class cannot be inherited. | |
IsSignUnspecifiedByte | Infrastructure. Indicates that a modifier is neither signed nor unsigned. This class cannot be inherited. | |
IsUdtReturn | Infrastructure. Indicates that a return type is a user-defined type. This class cannot be inherited. | |
IsVolatile | Infrastructure. Marks a field as volatile. This class cannot be inherited. | |
MethodImplAttribute | Infrastructure. Specifies the details of how a method is implemented. This class cannot be inherited. | |
NativeCppClassAttribute | Infrastructure. Applies metadata to an assembly that indicates that a type is an unmanaged type. This class cannot be inherited. | |
ReadOnlyCollectionBuilder<T> | The builder for read only collection. | |
ReferenceAssemblyAttribute | Identifies an assembly as containing metadata and not executable code. | |
RuleCache<T> | Infrastructure. Represents a cache of runtime binding rules. | |
RuntimeCompatibilityAttribute | Infrastructure. Specifies whether to wrap exceptions that do not derive from the Exception. This class cannot be inherited. | |
RuntimeHelpers | Infrastructure. Provides a set of static methods and properties that provide support for compilers. This class cannot be inherited. | |
RuntimeOps | Infrastructure. Contains helper methods called from dynamically generated methods. | |
SpecialNameAttribute | Infrastructure. Indicates that a type or member is treated in a special way by the runtime or tools. This class cannot be inherited. | |
StrongBox<T> | Infrastructure. Holds a reference to a value. | |
TypeForwardedFromAttribute | Specifies a source Type in another assembly. | |
TypeForwardedToAttribute | Specifies a destination Type in another assembly. This class cannot be inherited. | |
UnsafeValueTypeAttribute | Infrastructure. Specifies that a type contains an unmanaged array that might potentially overflow. This class cannot be inherited. |
Interfaces
Interface | Description | |
---|---|---|
IRuntimeVariables | Represents the values of run-time variables. | |
IStrongBox | Infrastructure. Defines a property for accessing the value that an object references. |
Delegates
Delegate | Description | |
---|---|---|
ConditionalWeakTable<TKey, TValue>.CreateValueCallback | Represents a method that creates a non-default value to add as part of a key/value pair to a ConditionalWeakTable<TKey, TValue> object. |
Enumerations
Enumeration | Description | |
---|---|---|
CodeGenerationFlags | Defines flags that specify how code is generated. | |
CompilationRelaxations | Infrastructure. Specifies parameters that control the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler. | |
MethodCodeType | Infrastructure. Defines how a method is implemented. | |
MethodImplOptions | Infrastructure. Defines the details of how a method is implemented. |