Expand Minimize
0 out of 1 rated this helpful - Rate this topic

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.

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

  ClassDescription
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsAccessedThroughPropertyAttributeSpecifies the name of the property that accesses the attributed field.
Public classSupported in .NET for Windows Store appsAsyncStateMachineAttributeIndicates whether a method is marked with either the Async (Visual Basic) or async (C# Reference) modifier.
Public classCallConvCdeclIndicates that a method should use the Cdecl calling convention.
Public classCallConvFastcallThis calling convention is not supported in this version of the .NET Framework.
Public classCallConvStdcallIndicates that a method should use the StdCall calling convention.
Public classCallConvThiscallIndicates that a method should use the ThisCall calling convention.
Public classSupported in .NET for Windows Store appsCallerFilePathAttributeAllows you to obtain the full path of the source file that contains the caller. This is the file path at the time of compile.
Public classSupported in .NET for Windows Store appsCallerLineNumberAttributeAllows you to obtain the line number in the source file at which the method is called.
Public classSupported in .NET for Windows Store appsCallerMemberNameAttributeAllows you to obtain the method or property name of the caller to the method.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCallSiteA dynamic call site base class. This type is used as a parameter type to the dynamic site targets.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCallSite<T>Dynamic site type.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCallSiteBinderClass responsible for runtime binding of the dynamic operations on the dynamic call site.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCallSiteHelpersClass that contains helper methods for DLR CallSites.
Public classCallSiteOpsInfrastructure. Creates and caches binding rules.
Public classClosureInfrastructure. Represents the runtime state of a dynamically generated method.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCompilationRelaxationsAttributeControls the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCompilerGeneratedAttributeDistinguishes a compiler-generated element from a user-generated element. This class cannot be inherited.
Public classCompilerGlobalScopeAttributeIndicates that a class should be treated as if it has global scope.
Public classCompilerMarshalOverrideIndicates that the modified instance of a variable differs from its true type when marshaling. This class cannot be inherited.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsConditionalWeakTable<TKey, TValue>Enables compilers to dynamically attach object fields to managed objects.
Public classSupported in .NET for Windows Store appsContractHelperProvides methods that the binary rewriter uses to handle contract failures.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCustomConstantAttributeDefines a constant value that a compiler can persist for a field or method parameter.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsDateTimeConstantAttributePersists an 8-byte DateTime constant for a field or parameter.
Public classDebugInfoGeneratorGenerates debug information for lambda expressions in an expression tree.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsDecimalConstantAttributeStores the value of a System.Decimal constant in metadata. This class cannot be inherited.
Public classDefaultDependencyAttributeProvides 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.
Public classDependencyAttributeIndicates when a dependency is to be loaded by the referring assembly. This class cannot be inherited.
Public classDiscardableAttributeMarks a type definition as discardable.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsDynamicAttributeIndicates that the use of Object on a member is meant to be treated as a dynamically dispatched type.
Public classExecutionScopeInfrastructure. Obsolete. Represents the runtime state of a dynamically generated method.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsExtensionAttributeIndicates that a method is an extension method, or that a class or assembly contains extension methods.
Public classFixedAddressValueTypeAttributeFixes the address of a static value type field throughout its lifetime. This class cannot be inherited.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsFixedBufferAttributeIndicates that a field should be treated as containing a fixed number of elements of the specified primitive type. This class cannot be inherited.
Public classHasCopySemanticsAttributeThis class is not used in the .NET Framework version 2.0 and is reserved for future use. This class cannot be inherited.
Public classIDispatchConstantAttributeIndicates that the default value for the attributed field or parameter is an instance of DispatchWrapper, where the WrappedObject is null.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsIndexerNameAttributeIndicates the name by which an indexer is known in programming languages that do not support indexers directly.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsInternalsVisibleToAttributeSpecifies that types that are ordinarily visible only within the current assembly are visible to a specified assembly.
Public classIsBoxedIndicates that the modified reference type is a boxed value type. This class cannot be inherited.
Public classIsByValueIndicates 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.
Public classIsConstIndicates that the modified type has a const modifier. This class cannot be inherited.
Public classIsCopyConstructedIndicates that any copying of values of this type must use the copy constructor provided by the type. This class cannot be inherited.
Public classIsExplicitlyDereferencedIndicates that a managed pointer represents a pointer parameter within a method signature. This class cannot be inherited.
Public classIsImplicitlyDereferencedIndicates that the modified garbage collection reference represents a reference parameter within a method signature. This class cannot be inherited.
Public classIsJitIntrinsicIndicates 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.
Public classIsLongIndicates that a modified integer is a standard C++ long value. This class cannot be inherited.
Public classIsPinnedIndicates that a modified instance is pinned in memory. This class cannot be inherited.
Public classIsSignUnspecifiedByteIndicates that a modifier is neither signed nor unsigned. This class cannot be inherited.
Public classIsUdtReturnIndicates that a return type is a user-defined type. This class cannot be inherited.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsIsVolatileMarks a field as volatile. This class cannot be inherited.
Public classSupported in .NET for Windows Store appsIteratorStateMachineAttributeIndicates whether a method in Visual Basic is marked with the Iterator modifier.
Public classIUnknownConstantAttributeIndicates 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.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsMethodImplAttributeSpecifies the details of how a method is implemented. This class cannot be inherited.
Public classNativeCppClassAttributeApplies metadata to an assembly that indicates that a type is an unmanaged type. This class cannot be inherited.
Public classReadOnlyCollectionBuilder<T>The builder for read only collection.
Public classSupported in .NET for Windows Store appsReferenceAssemblyAttributeIdentifies an assembly as a reference assembly, which contains metadata but no executable code.
Public classRequiredAttributeAttributeSpecifies that an importing compiler must fully understand the semantics of a type definition, or refuse to use it. This class cannot be inherited.
Public classRuleCache<T>Infrastructure. Represents a cache of runtime binding rules.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsRuntimeCompatibilityAttributeSpecifies whether to wrap exceptions that do not derive from the Exception class with a RuntimeWrappedException object. This class cannot be inherited.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsRuntimeHelpersProvides a set of static methods and properties that provide support for compilers. This class cannot be inherited.
Public classRuntimeOpsInfrastructure. Contains helper methods called from dynamically generated methods.
Public classRuntimeWrappedExceptionWraps an exception that does not derive from the Exception class. This class cannot be inherited.
Public classScopelessEnumAttributeIndicates that a native enumeration is not qualified by the enumeration type name. This class cannot be inherited.
Public classSpecialNameAttributeIndicates that a type or member is treated in a special way by the runtime or tools. This class cannot be inherited.
Public classSupported in .NET for Windows Store appsStateMachineAttributeAllows you to determine whether a method is a state machine method.
Public classStringFreezingAttributeDeprecated. Freezes a string literal when creating native images using the Ngen.exe (Native Image Generator). This class cannot be inherited.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsStrongBox<T>Holds a reference to a value.
Public classSuppressIldasmAttributePrevents the Ildasm.exe (MSIL Disassembler) from disassembling an assembly. This class cannot be inherited.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsTypeForwardedFromAttributeSpecifies a source Type in another assembly.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsTypeForwardedToAttributeSpecifies a destination Type in another assembly.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsUnsafeValueTypeAttributeSpecifies that a type contains an unmanaged array that might potentially overflow. This class cannot be inherited.
  StructureDescription
Public structureSupported in .NET for Windows Store appsAsyncTaskMethodBuilderRepresents a builder for asynchronous methods that return a task.
Public structureSupported in .NET for Windows Store appsAsyncTaskMethodBuilder<TResult>Represents a builder for asynchronous methods that return a task and provides a parameter for the result.
Public structureSupported in .NET for Windows Store appsAsyncVoidMethodBuilderRepresents a builder for asynchronous methods that do not return a value.
Public structureSupported in .NET for Windows Store appsConfiguredTaskAwaitableProvides an awaitable object that enables configured awaits on a task.
Public structureSupported in .NET for Windows Store appsConfiguredTaskAwaitable.ConfiguredTaskAwaiterProvides an awaiter for an awaitable (ConfiguredTaskAwaitable) object.
Public structureSupported in .NET for Windows Store appsConfiguredTaskAwaitable<TResult>Provides an awaitable object that enables configured awaits on a task.
Public structureSupported in .NET for Windows Store appsConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiterProvides an awaiter for an awaitable object(ConfiguredTaskAwaitable<TResult>).
Public structureSupported in .NET for Windows Store appsTaskAwaiterProvides an object that waits for the completion of an asynchronous task.
Public structureSupported in .NET for Windows Store appsTaskAwaiter<TResult>Represents an object that waits for the completion of an asynchronous task and provides a parameter for the result.
Public structureSupported in .NET for Windows Store appsYieldAwaitableProvides the context for waiting when asynchronously switching into a target environment.
Public structureSupported in .NET for Windows Store appsYieldAwaitable.YieldAwaiterProvides an awaiter for switching into a target environment.
  InterfaceDescription
Public interfaceSupported in .NET for Windows Store appsIAsyncStateMachineRepresents state machines that are generated for asynchronous methods. This type is intended for compiler use only.
Public interfaceSupported in .NET for Windows Store appsICriticalNotifyCompletionRepresents an awaiter that schedules continuations when an await operation completes.
Public interfaceSupported in .NET for Windows Store appsINotifyCompletionRepresents an operation that schedules continuations when it completes.
Public interfaceIRuntimeVariablesRepresents the values of run-time variables.
Public interfaceSupported by Portable Class LibrarySupported in .NET for Windows Store appsIStrongBoxDefines a property for accessing the value that an object references.
  DelegateDescription
Public delegateSupported by Portable Class LibrarySupported in .NET for Windows Store appsConditionalWeakTable<TKey, TValue>.CreateValueCallbackRepresents a method that creates a non-default value to add as part of a key/value pair to a ConditionalWeakTable<TKey, TValue> object.
Public delegateRuntimeHelpers.CleanupCodeRepresents a method to run when an exception occurs.
Public delegateRuntimeHelpers.TryCodeRepresents a delegate to code that should be run in a try block..
  EnumerationDescription
Public enumerationCompilationRelaxationsSpecifies parameters that control the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler.
Public enumerationLoadHintSpecifies the preferred default binding for a dependent assembly.
Public enumerationMethodCodeTypeDefines how a method is implemented.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsMethodImplOptionsDefines the details of how a method is implemented.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.