System.Runtime.CompilerServices.DecimalConstantAttribute Class

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

See Also: DecimalConstantAttribute Members


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


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.


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