System.Runtime.CompilerServices.CompilerGeneratedAttribute Class

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

See Also: CompilerGeneratedAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.All)]
public sealed class CompilerGeneratedAttribute : Attribute

Remarks

Apply the System.Runtime.CompilerServices.CompilerGeneratedAttribute attribute to any application element to indicate that the element is generated by a compiler.

Use the System.Runtime.CompilerServices.CompilerGeneratedAttribute attribute to determine whether an element is added by a compiler or authored directly in source code.

This attribute allows SQL server to reference compiler-generated static values.

Requirements

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