System.Runtime.CompilerServices.DecimalConstantAttribute Class

public sealed class DecimalConstantAttribute : Attribute

Base Types

Object
  Attribute
    DecimalConstantAttribute

Assembly

mscorlib

Library

RuntimeInfrastructure

Summary

Stores the value of a Decimal constant in metadata.

Description

[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.

]

Attributes

CLSCompliantAttribute(false), AttributeUsageAttribute(AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple=false, Inherited=false)

See Also

System.Runtime.CompilerServices Namespace

Members

DecimalConstantAttribute Constructors

DecimalConstantAttribute Constructor


DecimalConstantAttribute Constructor

public DecimalConstantAttribute(byte scale, byte sign, uint hi, uint mid, uint low);

Summary

Constructs a new instance of the DecimalConstantAttribute class with the specified value.

Parameters

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.

Exceptions

Exception TypeCondition
ArgumentOutOfRangeExceptionscale > 28.

See Also

System.Runtime.CompilerServices.DecimalConstantAttribute Class, System.Runtime.CompilerServices Namespace