System.Runtime.CompilerServices.DecimalConstantAttribute Class

Stores the value of a decimal constant in metadata. This class cannot be inherited.

See Also: DecimalConstantAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Parameter | System.AttributeTargets.All, Inherited=false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class DecimalConstantAttribute : Attribute

Remarks

Use this attribute to specify at compile time that a decimal value is a constant value.

You can apply this attribute to fields or parameters.

For more information about constant attributes, see the System.Runtime.CompilerServices.CustomConstantAttribute class.

The classes in System.Runtime.CompilerServices are for compiler writers use only.

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Requirements

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