Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

System.Runtime.CompilerServices Namespace

 

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.

ClassDescription
System_CAPS_pubclassAccessedThroughPropertyAttribute

Specifies the name of the property that accesses the attributed field.

System_CAPS_pubclassAsyncStateMachineAttribute

Indicates whether a method is marked with either the Async (Visual Basic) or async (C# Reference) modifier.

System_CAPS_pubclassCallConvCdecl

Indicates that a method should use the Cdecl calling convention.

System_CAPS_pubclassCallConvFastcall

This calling convention is not supported in this version of the .NET Framework.

System_CAPS_pubclassCallConvStdcall

Indicates that a method should use the StdCall calling convention.

System_CAPS_pubclassCallConvThiscall

Indicates that a method should use the ThisCall calling convention.

System_CAPS_pubclassCallerFilePathAttribute

Allows you to obtain the full path of the source file that contains the caller. This is the file path at the time of compile.

System_CAPS_pubclassCallerLineNumberAttribute

Allows you to obtain the line number in the source file at which the method is called.

System_CAPS_pubclassCallerMemberNameAttribute

Allows you to obtain the method or property name of the caller to the method.

System_CAPS_pubclassCallSite

A dynamic call site base class. This type is used as a parameter type to the dynamic site targets.

System_CAPS_pubclassCallSite<T>

Dynamic site type.

System_CAPS_pubclassCallSiteBinder

Class responsible for runtime binding of the dynamic operations on the dynamic call site.

System_CAPS_pubclassCallSiteHelpers

Class that contains helper methods for DLR CallSites.

System_CAPS_pubclassCallSiteOps

This API supports the product infrastructure and is not intended to be used directly from your code. Creates and caches binding rules.

System_CAPS_pubclassClosure

This API supports the product infrastructure and is not intended to be used directly from your code. Represents the runtime state of a dynamically generated method.

System_CAPS_pubclassCompilationRelaxationsAttribute

Controls the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler.

System_CAPS_pubclassCompilerGeneratedAttribute

Distinguishes a compiler-generated element from a user-generated element. This class cannot be inherited.

System_CAPS_pubclassCompilerGlobalScopeAttribute

Indicates that a class should be treated as if it has global scope.

System_CAPS_pubclassCompilerMarshalOverride

Indicates that the modified instance of a variable differs from its true type when marshaling. This class cannot be inherited.

System_CAPS_pubclassConditionalWeakTable<TKey, TValue>

Enables compilers to dynamically attach object fields to managed objects.

System_CAPS_pubclassContractHelper

Provides methods that the binary rewriter uses to handle contract failures.

System_CAPS_pubclassCustomConstantAttribute

Defines a constant value that a compiler can persist for a field or method parameter.

System_CAPS_pubclassDateTimeConstantAttribute

Persists an 8-byte DateTime constant for a field or parameter.

System_CAPS_pubclassDebugInfoGenerator

Generates debug information for lambda expressions in an expression tree.

System_CAPS_pubclassDecimalConstantAttribute

Stores the value of a System.Decimal constant in metadata. This class cannot be inherited.

System_CAPS_pubclassDefaultDependencyAttribute

Provides a hint to the common language runtime (CLR) indicating how likely a dependency is to be loaded. This class is used in a dependent assembly to indicate what hint should be used when the parent does not specify the DependencyAttribute attribute. This class cannot be inherited.

System_CAPS_pubclassDependencyAttribute

Indicates when a dependency is to be loaded by the referring assembly. This class cannot be inherited.

System_CAPS_pubclassDisablePrivateReflectionAttribute

Indicates that any private members contained in an assembly's types are not available to reflection.

System_CAPS_pubclassDiscardableAttribute

Marks a type definition as discardable.

System_CAPS_pubclassDynamicAttribute

Indicates that the use of Object on a member is meant to be treated as a dynamically dispatched type.

System_CAPS_pubclassExecutionScope

Obsolete. This API supports the product infrastructure and is not intended to be used directly from your code. Represents the runtime state of a dynamically generated method.

System_CAPS_pubclassExtensionAttribute

Indicates that a method is an extension method, or that a class or assembly contains extension methods.

System_CAPS_pubclassFixedAddressValueTypeAttribute

Fixes the address of a static value type field throughout its lifetime. This class cannot be inherited.

System_CAPS_pubclassFixedBufferAttribute

Indicates that a field should be treated as containing a fixed number of elements of the specified primitive type. This class cannot be inherited.

System_CAPS_pubclassFormattableStringFactory

Provides a static method to create a FormattableString object from a composite format string and its arguments.

System_CAPS_pubclassHasCopySemanticsAttribute

This class is not used in the .NET Framework version 2.0 and is reserved for future use. This class cannot be inherited.

System_CAPS_pubclassIDispatchConstantAttribute

Indicates that the default value for the attributed field or parameter is an instance of DispatchWrapper, where the WrappedObject is null.

System_CAPS_pubclassIndexerNameAttribute

Indicates the name by which an indexer is known in programming languages that do not support indexers directly.

System_CAPS_pubclassInternalsVisibleToAttribute

Specifies that types that are ordinarily visible only within the current assembly are visible to a specified assembly.

System_CAPS_pubclassIsBoxed

Indicates that the modified reference type is a boxed value type. This class cannot be inherited.

System_CAPS_pubclassIsByValue

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.

System_CAPS_pubclassIsConst

Indicates that the modified type has a const modifier. This class cannot be inherited.

System_CAPS_pubclassIsCopyConstructed

Indicates that any copying of values of this type must use the copy constructor provided by the type. This class cannot be inherited.

System_CAPS_pubclassIsExplicitlyDereferenced

Indicates that a managed pointer represents a pointer parameter within a method signature. This class cannot be inherited.

System_CAPS_pubclassIsImplicitlyDereferenced

Indicates that the modified garbage collection reference represents a reference parameter within a method signature. This class cannot be inherited.

System_CAPS_pubclassIsJitIntrinsic

Indicates that a modified method is an intrinsic value for which the just-in-time (JIT) compiler can perform special code generation. This class cannot be inherited.

System_CAPS_pubclassIsLong

Indicates that a modified integer is a standard C++ long value. This class cannot be inherited.

System_CAPS_pubclassIsPinned

Indicates that a modified instance is pinned in memory. This class cannot be inherited.

System_CAPS_pubclassIsSignUnspecifiedByte

Indicates that a modifier is neither signed nor unsigned. This class cannot be inherited.

System_CAPS_pubclassIsUdtReturn

Indicates that a return type is a user-defined type. This class cannot be inherited.

System_CAPS_pubclassIsVolatile

Marks a field as volatile. This class cannot be inherited.

System_CAPS_pubclassIteratorStateMachineAttribute

Indicates whether a method in Visual Basic is marked with the Iterator modifier.

System_CAPS_pubclassIUnknownConstantAttribute

Indicates that the default value for the attributed field or parameter is an instance of UnknownWrapper, where the WrappedObject is null. This class cannot be inherited.

System_CAPS_pubclassMethodImplAttribute

Specifies the details of how a method is implemented. This class cannot be inherited.

System_CAPS_pubclassNativeCppClassAttribute

Applies metadata to an assembly that indicates that a type is an unmanaged type. This class cannot be inherited.

System_CAPS_pubclassReadOnlyCollectionBuilder<T>

The builder for read only collection.

System_CAPS_pubclassReferenceAssemblyAttribute

Identifies an assembly as a reference assembly, which contains metadata but no executable code.

System_CAPS_pubclassRequiredAttributeAttribute

Specifies that an importing compiler must fully understand the semantics of a type definition, or refuse to use it. This class cannot be inherited.

System_CAPS_pubclassRuleCache<T>

This API supports the product infrastructure and is not intended to be used directly from your code. Represents a cache of runtime binding rules.

System_CAPS_pubclassRuntimeCompatibilityAttribute

Specifies whether to wrap exceptions that do not derive from the Exception class with a RuntimeWrappedException object. This class cannot be inherited.

System_CAPS_pubclassRuntimeHelpers

Provides a set of static methods and properties that provide support for compilers. This class cannot be inherited.

System_CAPS_pubclassRuntimeOps

This API supports the product infrastructure and is not intended to be used directly from your code. Contains helper methods called from dynamically generated methods.

System_CAPS_pubclassRuntimeWrappedException

Wraps an exception that does not derive from the Exception class. This class cannot be inherited.

System_CAPS_pubclassScopelessEnumAttribute

Indicates that a native enumeration is not qualified by the enumeration type name. This class cannot be inherited.

System_CAPS_pubclassSpecialNameAttribute

Indicates that a type or member is treated in a special way by the runtime or tools. This class cannot be inherited.

System_CAPS_pubclassStateMachineAttribute

Allows you to determine whether a method is a state machine method.

System_CAPS_pubclassStringFreezingAttribute

Deprecated. Freezes a string literal when creating native images using the Ngen.exe (Native Image Generator). This class cannot be inherited.

System_CAPS_pubclassStrongBox<T>

Holds a reference to a value.

System_CAPS_pubclassSuppressIldasmAttribute

Prevents the Ildasm.exe (IL Disassembler) from disassembling an assembly. This class cannot be inherited.

System_CAPS_pubclassTypeForwardedFromAttribute

Specifies a source Type in another assembly.

System_CAPS_pubclassTypeForwardedToAttribute

Specifies a destination Type in another assembly.

System_CAPS_pubclassUnsafeValueTypeAttribute

Specifies that a type contains an unmanaged array that might potentially overflow. This class cannot be inherited.

StructureDescription
System_CAPS_pubstructureAsyncTaskMethodBuilder

Represents a builder for asynchronous methods that return a task.

System_CAPS_pubstructureAsyncTaskMethodBuilder<TResult>

Represents a builder for asynchronous methods that returns a task and provides a parameter for the result.

System_CAPS_pubstructureAsyncVoidMethodBuilder

Represents a builder for asynchronous methods that do not return a value.

System_CAPS_pubstructureConfiguredTaskAwaitable

Provides an awaitable object that enables configured awaits on a task.

System_CAPS_pubstructureConfiguredTaskAwaitable<TResult>

Provides an awaitable object that enables configured awaits on a task.

System_CAPS_pubstructureConfiguredTaskAwaitable.ConfiguredTaskAwaiter

Provides an awaiter for an awaitable (ConfiguredTaskAwaitable) object.

System_CAPS_pubstructureConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter

Provides an awaiter for an awaitable object(ConfiguredTaskAwaitable<TResult>).

System_CAPS_pubstructureTaskAwaiter

This API supports the product infrastructure and is not intended to be used directly from your code. Provides an object that waits for the completion of an asynchronous task.

System_CAPS_pubstructureTaskAwaiter<TResult>

This API supports the product infrastructure and is not intended to be used directly from your code. Represents an object that waits for the completion of an asynchronous task and provides a parameter for the result.

System_CAPS_pubstructureYieldAwaitable

Provides the context for waiting when asynchronously switching into a target environment.

System_CAPS_pubstructureYieldAwaitable.YieldAwaiter

Provides an awaiter for switching into a target environment.

InterfaceDescription
System_CAPS_pubinterfaceIAsyncStateMachine

Represents state machines that are generated for asynchronous methods. This type is intended for compiler use only.

System_CAPS_pubinterfaceICriticalNotifyCompletion

Represents an awaiter that schedules continuations when an await operation completes.

System_CAPS_pubinterfaceINotifyCompletion

Represents an operation that schedules continuations when it completes.

System_CAPS_pubinterfaceIRuntimeVariables

Represents the values of run-time variables.

System_CAPS_pubinterfaceIStrongBox

Defines a property for accessing the value that an object references.

DelegateDescription
System_CAPS_pubdelegateRuntimeHelpers.CleanupCode

Represents a method to run when an exception occurs.

System_CAPS_pubdelegateConditionalWeakTable<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.

System_CAPS_pubdelegateRuntimeHelpers.TryCode

Represents a delegate to code that should be run in a try block..

EnumerationDescription
System_CAPS_pubenumCompilationRelaxations

Specifies parameters that control the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler.

System_CAPS_pubenumLoadHint

Specifies the preferred default binding for a dependent assembly.

System_CAPS_pubenumMethodCodeType

This API supports the product infrastructure and is not intended to be used directly from your code. Defines how a method is implemented.

System_CAPS_pubenumMethodImplOptions

Defines the details of how a method is implemented.

This namespace is primarily for compiler writers, although several of its classes, such as InternalsVisibleToAttribute, are used in a wide variety of applications.

Return to top
Show:
© 2016 Microsoft