Share via


System.Runtime.CompilerServices Namespace

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides functionality for compiler writers using managed code to specify metadata attributes that affect the run-time behavior of the common language runtime (CLR).

Items in this namespace are for use by Microsoft Visual Studio. You should not try to use them in your applications.

Classes

  Class Description
Public class AccessedThroughPropertyAttribute Specifies the name of the property that accesses the attributed field.
Public class CompilerGeneratedAttribute Distinguishes a compiler-generated element from a user-generated element. This class cannot be inherited.
Public class ExtensionAttribute Indicates that a method is an extension method, or that a class or assembly contains extension methods.
Public class IndexerNameAttribute Indicates the name by which an indexer is known in programming languages that do not support indexers directly.
Public class InternalsVisibleToAttribute Specifies that types that are ordinarily visible only within the current assembly are visible to a specified assembly.
Public class MethodImplAttribute Specifies the details of how a method is implemented. This class cannot be inherited.
Public class RuntimeHelpers Provides a set of static methods and properties that provide support for compilers. This class cannot be inherited.

Enumerations

  Enumeration Description
Public enumeration MethodCodeType Defines how a method is implemented.
Public enumeration MethodImplOptions Defines the details of how a method is implemented.