System.Runtime.CompilerServices.NativeCppClassAttribute Class

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

See Also: NativeCppClassAttribute Members


[System.AttributeUsage(System.AttributeTargets.Struct, Inherited=true)]
public sealed class NativeCppClassAttribute : Attribute


Compilers use the System.Runtime.CompilerServices.NativeCppClassAttribute attribute when building assemblies to indicate that a type is an unmanaged type defined in C or C++. This attribute is used later to correctly handle the unmanaged type when it is imported during interop.


Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions:,
Since: .NET 2.0