Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
System.Runtime.CompilerServices Namespace

Updated: February 2009

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 classAccessedThroughPropertyAttribute Specifies the name of the property that accesses the attributed field.
Public classCallConvCdecl Indicates that a method should use the Cdecl calling convention.
Public classCallConvFastcall This calling convention is not supported in this version of the .NET Framework.
Public classCallConvStdcall Indicates that a method should use the StdCall calling convention.
Public classCallConvThiscall Indicates that a method should use the ThisCall calling convention.
Public classCompilationRelaxationsAttribute Controls the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler.
Public classCompilerGeneratedAttribute Distinguishes a compiler-generated element from a user-generated element. This class cannot be inherited.
Public classCompilerGlobalScopeAttribute Indicates that a class should be treated as if it has global scope.
Public classCompilerMarshalOverride Indicates that the modified instance of a variable differs from its true type when marshaling. This class cannot be inherited.
Public classCustomConstantAttribute Defines a constant value that a compiler can persist for a field or method parameter.
Public classDateTimeConstantAttribute Persists an 8-byte DateTime constant for a field or parameter.
Public classDecimalConstantAttribute Stores the value of a System..::.Decimal constant in metadata. This class cannot be inherited.
Public classDefaultDependencyAttribute 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.
Public classDependencyAttribute Indicates when a dependency is to be loaded by the referring assembly. This class cannot be inherited.
Public classDiscardableAttribute Marks a type definition as discardable.
Public classExecutionScopeInfrastructure. Represents the runtime state of a dynamically generated method.
Public classExtensionAttributeIndicates that a method is an extension method, or that a class or assembly contains extension methods.
Public classFixedAddressValueTypeAttribute Fixes the address of a static value type field throughout its lifetime. This class cannot be inherited.
Public classFixedBufferAttribute Indicates that a field should be treated as containing a fixed number of elements of the specified primitive type. This class cannot be inherited.
Public classHasCopySemanticsAttribute This class is not used in the .NET Framework version 2.0 and is reserved for future use. This class cannot be inherited.
Public classIDispatchConstantAttribute Indicates that the default value for the attributed field or parameter is an instance of DispatchWrapper, where the WrappedObject is nullNothingnullptra null reference (Nothing in Visual Basic).
Public classIndexerNameAttribute Indicates the name by which an indexer is known in programming languages that do not support indexers directly.
Public classInternalsVisibleToAttribute Specifies that types that are ordinarily visible only within the current assembly are visible to another assembly.
Public classIsBoxed Indicates that the modified reference type is a boxed value type. This class cannot be inherited.
Public classIsByValue 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.
Public classIsConst Indicates that the modified type has a const modifier. This class cannot be inherited.
Public classIsCopyConstructed Indicates that any copying of values of this type must use the copy constructor provided by the type. This class cannot be inherited.
Public classIsExplicitlyDereferenced Indicates that a managed pointer represents a pointer parameter within a method signature. This class cannot be inherited.
Public classIsImplicitlyDereferenced Indicates that the modified garbage collection reference represents a reference parameter within a method signature. This class cannot be inherited.
Public classIsJitIntrinsic 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.
Public classIsLong Indicates that a modified integer is a standard C++ long value. This class cannot be inherited.
Public classIsPinned Indicates that a modified instance is pinned in memory. This class cannot be inherited.
Public classIsSignUnspecifiedByte Indicates that a modifier is neither signed nor unsigned. This class cannot be inherited.
Public classIsUdtReturn Indicates that a return type is a user-defined type. This class cannot be inherited.
Public classIsVolatile Marks a field as volatile. This class cannot be inherited.
Public classIUnknownConstantAttribute Indicates that the default value for the attributed field or parameter is an instance of UnknownWrapper, where the WrappedObject is nullNothingnullptra null reference (Nothing in Visual Basic). This class cannot be inherited.
Public classMethodImplAttribute Specifies the details of how a method is implemented. This class cannot be inherited.
Public classNativeCppClassAttribute Applies metadata to an assembly that indicates that a type is an unmanaged type. This class cannot be inherited.
Public classRequiredAttributeAttribute Specifies that an importing compiler must fully understand the semantics of a type definition, or refuse to use it. This class cannot be inherited.
Public classRuntimeCompatibilityAttribute Specifies whether to wrap exceptions that do not derive from the Exception class with a RuntimeWrappedException object. This class cannot be inherited.
Public classRuntimeHelpers Provides a set of static methods and properties that provide support for compilers. This class cannot be inherited.
Public classRuntimeWrappedException Wraps an exception that does not derive from the Exception class. This class cannot be inherited.
Public classScopelessEnumAttribute Indicates that a native enumeration is not qualified by the enumeration type name. This class cannot be inherited.
Public classSpecialNameAttribute Indicates that a type or member is treated in a special way by the runtime or tools. This class cannot be inherited.
Public classStringFreezingAttribute Deprecated. Freezes a string literal when creating native images using the Native Image Generator (Ngen.exe). This class cannot be inherited.
Public classStrongBox<(Of <(T>)>)Infrastructure. Holds a reference to a value.
Public classSuppressIldasmAttribute Prevents the MSIL Disassembler (Ildasm.exe) from disassembling an assembly. This class cannot be inherited.
Public classTypeForwardedToAttribute Specifies a destination Type in another assembly. This class cannot be inherited.
Public classUnsafeValueTypeAttribute Specifies that a type contains an unmanaged array that might potentially overflow. This class cannot be inherited.
  InterfaceDescription
Public interfaceIStrongBoxInfrastructure. Defines a property for accessing the value that an object references.
  DelegateDescription
Public delegateRuntimeHelpers..::.CleanupCode Represents a method to run when an exception occurs.
Public delegateRuntimeHelpers..::.TryCode Represents a delegate to code that should be run in a try block..
  EnumerationDescription
Public enumerationCompilationRelaxations Specifies parameters that control the strictness of the code generated by the common language runtime's just-in-time (JIT) compiler.
Public enumerationLoadHint Specifies the preferred default binding for a dependent assembly.
Public enumerationMethodCodeType Defines how a method is implemented.
Public enumerationMethodImplOptions Defines the details of how a method is implemented.

Date

History

Reason

February 2009

Added information about usage.

Customer feedback.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker