public sealed class DecimalConstantAttribute : Attribute
Object
Attribute
DecimalConstantAttribute
mscorlib
RuntimeInfrastructure
Stores the value of a Decimal constant in metadata.
[Note: This attribute can be applied to fields and parameters.For more information on storing constants in metadata, see Partition II of the CLI Specification.
The types in
System.Runtime.CompilerServices
are intended primarily for use by compilers, not application programmers. They allow compilers to easily implement certain language features that are not directly visible to programmers.]
CLSCompliantAttribute(false)
,AttributeUsageAttribute(AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple=false, Inherited=false)
System.Runtime.CompilerServices Namespace
DecimalConstantAttribute Constructors
public DecimalConstantAttribute(byte scale, byte sign, uint hi, uint mid, uint low);
Constructs a new instance of the DecimalConstantAttribute class with the specified value.
- scale
- A Byte that specifies the number of digits to the right of the decimal point in the value of the new instance. Valid scale values are 0 through 28 inclusive.
- sign
- A Byte that specifies the sign of the value of the new instance. Zero indicates a positive value; any non-zero value indicates a negative value.
- hi
- A UInt32 that specifies the high-order 32 bits of the value of the new instance.
- mid
- A UInt32 that specifies the middle 32 bits of the value of the new instance.
- low
- A UInt32 that specifies the low-order 32 bits of the value of the new instance.
Exception Type Condition ArgumentOutOfRangeException scale > 28.
System.Runtime.CompilerServices.DecimalConstantAttribute Class, System.Runtime.CompilerServices Namespace