using System; using System.Runtime.InteropServices; namespace System.Runtime.CompilerServices { /// Stores the value of a constant in metadata. This class cannot be inherited. // Token: 0x02000057 RID: 87 [ComVisible(true)] [AttributeUsage(AttributeTargets.Field | AttributeTargets.Parameter, Inherited = false)] [Serializable] public sealed class DecimalConstantAttribute : Attribute { /// Initializes a new instance of the class with the specified unsigned integer values. /// The power of 10 scaling factor that indicates the number of digits to the right of the decimal point. Valid values are 0 through 28 inclusive. /// A value of 0 indicates a positive value, and a value of 1 indicates a negative value. /// The high 32 bits of the 96-bit . /// The middle 32 bits of the 96-bit . /// The low 32 bits of the 96-bit . /// /// > 28. // Token: 0x06000687 RID: 1671 RVA: 0x00014CA0 File Offset: 0x00012EA0 [CLSCompliant(false)] public DecimalConstantAttribute(byte scale, byte sign, uint hi, uint mid, uint low) { this.scale = scale; this.sign = Convert.ToBoolean(sign); this.hi = (int)hi; this.mid = (int)mid; this.low = (int)low; } /// Initializes a new instance of the class with the specified signed integer values. /// The power of 10 scaling factor that indicates the number of digits to the right of the decimal point. Valid values are 0 through 28 inclusive. /// A value of 0 indicates a positive value, and a value of 1 indicates a negative value. /// The high 32 bits of the 96-bit . /// The middle 32 bits of the 96-bit . /// The low 32 bits of the 96-bit . // Token: 0x06000688 RID: 1672 RVA: 0x00014CE0 File Offset: 0x00012EE0 public DecimalConstantAttribute(byte scale, byte sign, int hi, int mid, int low) { this.scale = scale; this.sign = Convert.ToBoolean(sign); this.hi = hi; this.mid = mid; this.low = low; } /// Gets the decimal constant stored in this attribute. /// The decimal constant stored in this attribute. // Token: 0x170000C1 RID: 193 // (get) Token: 0x06000689 RID: 1673 RVA: 0x00014D20 File Offset: 0x00012F20 public decimal Value { get { return new decimal(this.low, this.mid, this.hi, this.sign, this.scale); } } // Token: 0x040000A9 RID: 169 private byte scale; // Token: 0x040000AA RID: 170 private bool sign; // Token: 0x040000AB RID: 171 private int hi; // Token: 0x040000AC RID: 172 private int mid; // Token: 0x040000AD RID: 173 private int low; } }