3 overrides of DecimalValue
Microsoft.CodeAnalysis (3)
ConstantValueSpecialized.cs (3)
251public override decimal DecimalValue 401public override decimal DecimalValue 579public override decimal DecimalValue
41 references to DecimalValue
Microsoft.CodeAnalysis (7)
ConstantValue.cs (3)
535case ConstantValueTypeDiscriminator.Decimal: return Boxes.Box(DecimalValue); 592return DecimalValue < 0; 831ConstantValueTypeDiscriminator.Decimal => DecimalValue.ToString(provider),
ConstantValueSpecialized.cs (3)
266return base.Equals(other) && _value == other.DecimalValue; 466return this.Discriminator == other.Discriminator && other.DecimalValue == 0m; 682return this.Discriminator == other.Discriminator && other.DecimalValue == 1m;
CryptographicHashProvider.cs (1)
275int[] bits = decimal.GetBits(constant.DecimalValue);
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_Conversions.cs (3)
4257decimal decimalValue = CheckConstantBounds(destinationType, value.DecimalValue, out _) ? value.DecimalValue : 0m; 4379case ConstantValueTypeDiscriminator.Decimal: return value.DecimalValue;
Binder\Binder_Operators.cs (25)
2475return valueLeft.DecimalValue + valueRight.DecimalValue; 2477return valueLeft.DecimalValue - valueRight.DecimalValue; 2479return valueLeft.DecimalValue * valueRight.DecimalValue; 2481return valueLeft.DecimalValue / valueRight.DecimalValue; 2483return valueLeft.DecimalValue % valueRight.DecimalValue; 3075return valueLeft.DecimalValue == valueRight.DecimalValue; 3095return valueLeft.DecimalValue != valueRight.DecimalValue; 3111return valueLeft.DecimalValue < valueRight.DecimalValue; 3127return valueLeft.DecimalValue > valueRight.DecimalValue; 3143return valueLeft.DecimalValue <= valueRight.DecimalValue; 3159return valueLeft.DecimalValue >= valueRight.DecimalValue; 4553return -value.DecimalValue; 4558return +value.DecimalValue; 4761return valueRight.DecimalValue == 0.0m;
Binder\Semantics\Conversions\ConversionsBase.cs (1)
2108return value.DecimalValue == 0;
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
56var value = constantValue.DecimalValue;
Symbols\Source\SourceMemberFieldSymbol.cs (1)
129AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDecimalConstantAttribute(value.DecimalValue));
Symbols\Source\SourceParameterSymbolBase.cs (1)
93AddSynthesizedAttribute(ref attributes, compilation.SynthesizeDecimalConstantAttribute(defaultValue.DecimalValue));
Symbols\Synthesized\SynthesizedParameterSymbol.cs (1)
213SpecialType.System_Decimal => compilation.SynthesizeDecimalConstantAttribute(defaultValue.DecimalValue),
Utilities\ValueSetFactory.DecimalTC.cs (1)
35public decimal FromConstantValue(ConstantValue constantValue) => constantValue.IsBad ? 0m : constantValue.DecimalValue;