14 instantiations of Decimal
dotnet-svcutil-lib (6)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (2)
467return new Decimal((int)m_data1, (int)m_data2, (int)m_data3, !IsPositive, m_bScale); 616return new Decimal(unchecked((int)v), unchecked((int)(v >> 32)), 0, neg, MoneyScale);
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (4)
3721return new Decimal(ValueAsLong()); 3724return new Decimal(ValueAsULong()); 3727return new Decimal(GetSingle(_tokDataPos)); 3730return new Decimal(GetDouble(_tokDataPos));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
SymbolDisplay\ObjectDisplayTests.cs (1)
284var decimalValue = new Decimal(12.5);
PresentationCore (4)
System\Windows\Media\Animation\Generated\DecimalAnimation.cs (4)
222Decimal from = new Decimal(); 223Decimal to = new Decimal(); 224Decimal accumulated = new Decimal(); 225Decimal foundation = new Decimal();
PresentationFramework (1)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3432DefaultConstructor = delegate () { return new System.Decimal(); },
UIAutomationTypes (2)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (2)
2117return new Decimal(longVal); 2139return new Decimal(longVal);
333 references to Decimal
dotnet-svcutil-lib (50)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (3)
1786else if (e.Value is Decimal) 1788GenerateDecimalValue((Decimal)e.Value); 1826protected virtual void GenerateDecimalValue(Decimal d)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (3)
1388else if (e.Value is Decimal) 1390GenerateDecimalValue((Decimal)e.Value); 2324private void GenerateDecimalValue(Decimal d)
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\SqlUtils.cs (3)
462public Decimal ToDecimal() 600public Decimal ToDecimal() 621Decimal money = ToDecimal();
FrameworkFork\Microsoft.Xml\Xml\BinaryXml\XmlBinaryReader.cs (5)
3302Type TypeOfDecimal = typeof(System.Decimal); 3686Decimal v = ValueAsDecimal(); 3708private Decimal ValueAsDecimal() 4289Decimal v = (Decimal)GetUInt64(_tokDataPos);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (1)
902public override Decimal ReadElementContentAsDecimal()
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (2)
1111value = Decimal.Negate(value); //Need to compare maxValue allowed against the absolute value 1113while (Decimal.Truncate(value) != value)
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (2)
22public static Type[] InterfaceTypes = { typeof(Boolean), typeof(DateTime), typeof(Decimal), typeof(Double), typeof(Int32), typeof(Int64), typeof(Single), typeof(String), typeof(Object) }; 862if (type == typeof(Decimal)) return "decimal";
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (2)
2428if (copyElement.MinOccurs != Decimal.One && this.Occurrence == InferenceOption.Relaxed) 2432if (copyElement.MaxOccurs != Decimal.One)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (2)
1171ConstructorInfo Decimal_ctor = typeof(Decimal).GetConstructor( 1175int[] bits = Decimal.GetBits((decimal)o);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeIdentifier.cs (2)
104Decimal d; 105if (Decimal.TryParse(c.ToString(), out d))
FrameworkFork\Microsoft.Xml\Xml\Serialization\PrimitiveXmlSerializers.cs (2)
97WriteElementStringRaw(@"decimal", @"", Microsoft.Xml.XmlConvert.ToString((System.Decimal)((System.Decimal)o)));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (1)
3573Writer.Write(((Decimal)value).ToString(null, NumberFormatInfo.InvariantInfo));
FrameworkFork\Microsoft.Xml\Xml\XmlConvert.cs (9)
705public static string ToString(Decimal value) 952public static Decimal ToDecimal(string s) 954return Decimal.Parse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 957internal static Exception TryToDecimal(string s, out Decimal result) 959if (!Decimal.TryParse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowDecimalPoint | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) 966internal static Decimal ToInteger(string s) 968return Decimal.Parse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 971internal static Exception TryToInteger(string s, out Decimal result) 973if (!Decimal.TryParse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result))
FrameworkFork\Microsoft.Xml\Xml\XPath\Internal\ExtensionQuery.cs (2)
124if (value is Decimal) return (double)(Decimal)value;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (1)
106any.MaxOccurs = Decimal.MaxValue;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
807if (any.MaxOccurs != Decimal.MaxValue)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\TypeCode.cs (1)
63else if (type == typeof(Decimal))
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (1)
369public Decimal ToDecimal()
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseReader.cs (1)
1571public override Decimal ReadContentAsDecimal()
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (3)
1558public override Decimal ReadContentAsDecimal() 1562return (Decimal)_reader.ReadContentAs(typeof(Decimal), null);
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
155if (type == typeof(Decimal))
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (2)
711value = Array.Empty<Decimal>(); 873writer.WriteValue((Decimal)value);
Microsoft.AspNetCore.Components (8)
BindConverter.cs (4)
1102/// Attempts to convert a value to a <see cref="System.Decimal"/>. 1114/// Attempts to convert a value to a nullable <see cref="System.Decimal"/>. 1137if (!decimal.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted)) 1156if (!decimal.TryParse(text, NumberStyles.Number, culture ?? CultureInfo.CurrentCulture, out var converted))
Routing\RouteTableFactory.cs (2)
288var xPrecedence = RoutePrecedence.ComputeInbound(xTemplate); 289var yPrecedence = RoutePrecedence.ComputeInbound(yTemplate);
src\Http\Routing\src\Template\RoutePrecedence.cs (2)
62var precedence = 0m; 118var precedence = 0m;
Microsoft.AspNetCore.Components.Tests (2)
EventCallbackFactoryBinderExtensionsTest.cs (2)
311var value = (decimal)17; 317var expectedValue = (decimal)42;
Microsoft.AspNetCore.InternalTesting (3)
xunit\AspNetTestInvoker.cs (1)
48var time = await base.InvokeTestMethodAsync(testClassInstance).ConfigureAwait(false);
xunit\AspNetTestRunner.cs (2)
78var totalTimeTaken = 0m; 116var timeTaken = 0.0M;
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
SimpleTypeModelBinderIntegrationTest.cs (1)
216var model = Assert.IsType<decimal>(modelBindingResult.Model);
Microsoft.AspNetCore.Mvc.TagHelpers (1)
InputTagHelper.cs (1)
49{ nameof(Decimal), InputType.Text.ToString().ToLowerInvariant() },
Microsoft.AspNetCore.OpenApi (4)
Extensions\JsonNodeSchemaExtensions.cs (2)
102if (decimal.TryParse(minString, NumberStyles.Any, targetCulture, out var minDecimal)) 106if (decimal.TryParse(maxString, NumberStyles.Any, targetCulture, out var maxDecimal))
Schemas\OpenApiJsonSchema.Helpers.cs (2)
260var minimum = reader.GetDecimal(); 265var maximum = reader.GetDecimal();
Microsoft.AspNetCore.Routing (4)
Template\RoutePrecedence.cs (4)
41var precedence = 0m; 62var precedence = 0m; 95var precedence = 0m; 118var precedence = 0m;
Microsoft.AspNetCore.Routing.Tests (10)
Template\RoutePatternPrecedenceTests.cs (2)
29var parameterPrecedence = RoutePatternFactory.Parse( 32var requiredValueParameterPrecedence = RoutePatternFactory.Parse(
Template\RoutePrecedenceTestsBase.cs (8)
15var xPrededence = ComputeMatched(xTemplate); 16var yPrededence = ComputeMatched(yTemplate); 29var xPrededence = ComputeGenerated(xTemplate); 30var yPrededence = ComputeGenerated(yTemplate); 60var xPrededence = ComputeMatched(xTemplate); 61var yPrededence = ComputeMatched(yTemplate); 91var xPrecedence = ComputeGenerated(xTemplate); 92var yPrecedence = ComputeGenerated(yTemplate);
Microsoft.Build (1)
Resources\Constants.cs (1)
362availableStaticMethods.TryAdd("System.Decimal", new Tuple<string, Type>(null, typeof(Decimal)));
Microsoft.CodeAnalysis (1)
ConstantValue.cs (1)
329int[] decimalBits = System.Decimal.GetBits(value);
Microsoft.CodeAnalysis.CSharp (2)
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
56var value = constantValue.DecimalValue;
Utilities\ValueSetFactory.DecimalTC.cs (1)
80var result = new DecimalRep(low: low + 1, mid: mid, high: high, isNegative: isNegative, scale: scale).Value;
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
36nameof(Decimal),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Utilities\ValueSetTests.cs (3)
543var l = new decimal(~0, ~0, ~0, false, scale); 551var l = new decimal(unchecked((int)0x99999999), unchecked((int)0x99999999), 0x19999999, false, scale); 572var l = new decimal(low, mid, high, false, 28);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
SymbolDisplay\ObjectDisplayTests.cs (1)
284var decimalValue = new Decimal(12.5);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
LexicalAndXml\LexicalTests.cs (3)
2148var value = 123m; 2164var value = 123.456m; 2180var value = 123.456e2m;
Microsoft.CodeAnalysis.UnitTests (1)
CorLibTypesTests.cs (1)
108Assert.Throws<InvalidOperationException>(() => { var c = cvNull.DecimalValue; });
Microsoft.CodeAnalysis.VisualBasic (9)
Generated\Syntax.xml.Internal.Generated.vb (7)
25756Friend ReadOnly _value as System.Decimal 25758Friend Sub New(ByVal kind As SyntaxKind, text as String, leadingTrivia As GreenNode, trailingTrivia As GreenNode, typeSuffix As TypeCharacter, value As System.Decimal) 25764Friend Sub New(ByVal kind As SyntaxKind, text as String, leadingTrivia As GreenNode, trailingTrivia As GreenNode, typeSuffix As TypeCharacter, value As System.Decimal, context As ISyntaxFactoryContext) 25771Friend Sub New(ByVal kind As SyntaxKind, ByVal errors as DiagnosticInfo(), ByVal annotations as SyntaxAnnotation(), text as String, leadingTrivia As GreenNode, trailingTrivia As GreenNode, typeSuffix As TypeCharacter, value As System.Decimal) 25790Friend ReadOnly Property Value As System.Decimal 45406Friend Shared Function DecimalLiteralToken(text as String, typeSuffix As TypeCharacter, value As System.Decimal, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As DecimalLiteralTokenSyntax 57472Friend Function DecimalLiteralToken(text as String, typeSuffix As TypeCharacter, value As System.Decimal, leadingTrivia As GreenNode, trailingTrivia As GreenNode) As DecimalLiteralTokenSyntax
Generated\Syntax.xml.Main.Generated.vb (2)
41888Public Shared Function DecimalLiteralToken(leadingTrivia As SyntaxTriviaList, text as String, typeSuffix As TypeCharacter, value As System.Decimal, trailingTrivia As SyntaxTriviaList) As SyntaxToken 41902Public Shared Function DecimalLiteralToken(text as String, typeSuffix As TypeCharacter, value As System.Decimal) As SyntaxToken
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
ObjectSerializationTests.cs (6)
288TestRoundTripValue(Decimal.MaxValue); 423writer.WriteDecimal(Decimal.MaxValue); 447Assert.Equal(Decimal.MaxValue, reader.ReadDecimal()); 477writer.WriteScalarValue(Decimal.MaxValue); 515Assert.Equal(Decimal.MaxValue, (Decimal)reader.ReadScalarValue());
Microsoft.Data.Analysis (94)
DataFrameColumnCollection.cs (1)
359throw new ArgumentException(string.Format(Strings.BadColumnCast, column.DataType, typeof(Decimal)));
PrimitiveDataFrameColumn.BinaryOperationAPIs.ExplodedColumns.cs (80)
3597var convertedValue = (decimal)value; 3602var convertedValue = (decimal)value; 3607var convertedValue = (decimal)value; 3612var convertedValue = (decimal)value; 3617var convertedValue = (decimal)value; 3622var convertedValue = (decimal)value; 3627var convertedValue = (decimal)value; 3632var convertedValue = (decimal)value; 3637var convertedValue = (decimal)value; 3642var convertedValue = (decimal)value; 3687var convertedValue = (decimal)value; 3692var convertedValue = (decimal)value; 3697var convertedValue = (decimal)value; 3702var convertedValue = (decimal)value; 3707var convertedValue = (decimal)value; 3712var convertedValue = (decimal)value; 3717var convertedValue = (decimal)value; 3722var convertedValue = (decimal)value; 3727var convertedValue = (decimal)value; 3732var convertedValue = (decimal)value; 3737var convertedValue = (decimal)value; 3742var convertedValue = (decimal)value; 3747var convertedValue = (decimal)value; 3752var convertedValue = (decimal)value; 3757var convertedValue = (decimal)value; 3762var convertedValue = (decimal)value; 3767var convertedValue = (decimal)value; 3772var convertedValue = (decimal)value; 3777var convertedValue = (decimal)value; 3782var convertedValue = (decimal)value; 3787var convertedValue = (decimal)value; 3792var convertedValue = (decimal)value; 3797var convertedValue = (decimal)value; 3802var convertedValue = (decimal)value; 3807var convertedValue = (decimal)value; 3812var convertedValue = (decimal)value; 3817var convertedValue = (decimal)value; 3822var convertedValue = (decimal)value; 3827var convertedValue = (decimal)value; 3832var convertedValue = (decimal)value; 3837var convertedValue = (decimal)value; 3842var convertedValue = (decimal)value; 3847var convertedValue = (decimal)value; 3852var convertedValue = (decimal)value; 3857var convertedValue = (decimal)value; 3862var convertedValue = (decimal)value; 3867var convertedValue = (decimal)value; 3872var convertedValue = (decimal)value; 3877var convertedValue = (decimal)value; 3882var convertedValue = (decimal)value; 3887var convertedValue = (decimal)value; 3892var convertedValue = (decimal)value; 3897var convertedValue = (decimal)value; 3902var convertedValue = (decimal)value; 3907var convertedValue = (decimal)value; 3912var convertedValue = (decimal)value; 3917var convertedValue = (decimal)value; 3922var convertedValue = (decimal)value; 3927var convertedValue = (decimal)value; 3932var convertedValue = (decimal)value; 3937var convertedValue = (decimal)value; 3942var convertedValue = (decimal)value; 3947var convertedValue = (decimal)value; 3952var convertedValue = (decimal)value; 3957var convertedValue = (decimal)value; 3962var convertedValue = (decimal)value; 3967var convertedValue = (decimal)value; 3972var convertedValue = (decimal)value; 3977var convertedValue = (decimal)value; 3982var convertedValue = (decimal)value; 3987var convertedValue = (decimal)value; 3992var convertedValue = (decimal)value; 3997var convertedValue = (decimal)value; 4002var convertedValue = (decimal)value; 4007var convertedValue = (decimal)value; 4012var convertedValue = (decimal)value; 4017var convertedValue = (decimal)value; 4022var convertedValue = (decimal)value; 4027var convertedValue = (decimal)value; 4032var convertedValue = (decimal)value;
PrimitiveDataFrameColumnComputations.cs (13)
1247var ret = column.Buffers[0].ReadOnlySpan[0]; 1270var ret = decimal.MinValue; 1311var ret = column.Buffers[0].ReadOnlySpan[0]; 1334var ret = decimal.MaxValue; 1375var ret = (decimal)1; 1398var ret = default(decimal); 1439var ret = (decimal)0; 1462var ret = default(decimal); 1503var value = decimal.MinValue; 1526var value = decimal.MinValue; 1551var value = decimal.MaxValue; 1574var value = decimal.MaxValue; 1643var value = (decimal)0;
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Metrics\MeasurementExtensionsTests.cs (1)
238var total = fullSnap.EvaluateAsCounter();
Microsoft.Maui.Controls (2)
Xaml\TypeConversionExtensions.cs (2)
209 if (toType == typeof(Decimal)) 210 return Decimal.Parse(str, CultureInfo.InvariantCulture);
Microsoft.Maui.Controls.Xaml (1)
CreateValuesVisitor.cs (1)
377 if (nodeType == typeof(decimal) && decimal.TryParse(valuestring, NumberStyles.Number, CultureInfo.InvariantCulture, out var decimalval))
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
709public void Conv(in decimal? src, ref Double dst) => dst = src != null ? Decimal.ToDouble((decimal)src) : Double.NaN;
Microsoft.ML.TimeSeries (4)
PolynomialUtils.cs (4)
157var temp = Math.Abs(Coefficients[i]); 343var k1 = Math.Abs(factors.ElementAt(0).Key); 344var k2 = Math.Abs(factors.ElementAt(factors.Count - 1).Key); 386coefficients[i] = Decimal.ToDouble(coeff[i - destinationOffset]);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
146[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Decimal))]
netstandard (1)
netstandard.cs (1)
616[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Decimal))]
PresentationBuildTasks (2)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\KnownTypes.cs (1)
5505case KnownElements.Decimal: t = typeof(Decimal); break;
src\Microsoft.DotNet.Wpf\src\Shared\System\Windows\Markup\TypeConverterHelper.cs (1)
204else if (typeof(Decimal).IsAssignableFrom(type))
PresentationCore (98)
MS\Internal\AnimatedTypeHelpers.cs (19)
29internal static Decimal InterpolateDecimal(Decimal from, Decimal to, Double progress) 31return from + ((to - from) * (Decimal)progress); 169internal static Decimal AddDecimal(Decimal value1, Decimal value2) 271internal static Decimal SubtractDecimal(Decimal value1, Decimal value2) 393internal static Double GetSegmentLengthDecimal(Decimal from, Decimal to) 519internal static Decimal ScaleDecimal(Decimal value, Double factor) 521return value * (Decimal)factor; 628internal static bool IsValidAnimationValueDecimal(Decimal value) 770internal static Decimal GetZeroValueDecimal(Decimal baseValue) 772return Decimal.Zero;
MS\Internal\Ink\InkSerializedFormat\SerializationHelper.cs (2)
310else if (typeof(Decimal) == type) 314else if (typeof(Decimal[]) == type)
System\Windows\Media\Animation\Generated\DecimalAnimation.cs (32)
32private Decimal[] _keyValues; 47Type typeofProp = typeof(Decimal?); 56new PropertyMetadata((Decimal?)null, propCallback), 63new PropertyMetadata((Decimal?)null, propCallback), 70new PropertyMetadata((Decimal?)null, propCallback), 94public DecimalAnimation(Decimal toValue, Duration duration) 106public DecimalAnimation(Decimal toValue, Duration duration, FillBehavior fillBehavior) 119public DecimalAnimation(Decimal fromValue, Decimal toValue, Duration duration) 132public DecimalAnimation(Decimal fromValue, Decimal toValue, Duration duration, FillBehavior fillBehavior) 205protected override Decimal GetCurrentValueCore(Decimal defaultOriginValue, Decimal defaultDestinationValue, AnimationClock animationClock) 222Decimal from = new Decimal(); 223Decimal to = new Decimal(); 224Decimal accumulated = new Decimal(); 225Decimal foundation = new Decimal(); 339Decimal accumulator = AnimatedTypeHelpers.SubtractDecimal(to, from); 364_keyValues = new Decimal[2]; 371_keyValues = new Decimal[2]; 378_keyValues = new Decimal[1]; 385_keyValues = new Decimal[1]; 391_keyValues = new Decimal[1]; 412Decimal? typedValue = (Decimal?)value; 432public Decimal? From 436return (Decimal?)GetValue(FromProperty); 452public Decimal? To 456return (Decimal?)GetValue(ToProperty); 472public Decimal? By 476return (Decimal?)GetValue(ByProperty);
System\Windows\Media\Animation\Generated\DecimalAnimationBase.cs (9)
80return GetCurrentValue((Decimal)defaultOriginValue, (Decimal)defaultDestinationValue, animationClock); 92return typeof(Decimal); 129public Decimal GetCurrentValue(Decimal defaultOriginValue, Decimal defaultDestinationValue, AnimationClock animationClock) 185protected abstract Decimal GetCurrentValueCore(Decimal defaultOriginValue, Decimal defaultDestinationValue, AnimationClock animationClock);
System\Windows\Media\Animation\Generated\DecimalAnimationUsingKeyFrames.cs (8)
312protected sealed override Decimal GetCurrentValueCore( 313Decimal defaultOriginValue, 314Decimal defaultDestinationValue, 340Decimal currentIterationValue; 376Decimal fromValue; 621private Decimal GetResolvedKeyFrameValue(Int32 resolvedKeyFrameIndex) 934Decimal prevKeyValue = _keyFrames[index - 1].Value; 938Decimal currentKeyValue = _keyFrames[index].Value;
System\Windows\Media\Animation\Generated\DiscreteKeyFrames.cs (4)
345public DiscreteDecimalKeyFrame(Decimal value) 353public DiscreteDecimalKeyFrame(Decimal value, KeyTime keyTime) 381protected override Decimal InterpolateValueCore(Decimal baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\EasingKeyFrames.cs (5)
292public EasingDecimalKeyFrame(Decimal value) 301public EasingDecimalKeyFrame(Decimal value, KeyTime keyTime) 311public EasingDecimalKeyFrame(Decimal value, KeyTime keyTime, IEasingFunction easingFunction) 340protected override Decimal InterpolateValueCore(Decimal baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\KeyFrames.cs (10)
601protected DecimalKeyFrame(Decimal value) 610protected DecimalKeyFrame(Decimal value, KeyTime keyTime) 653typeof(Decimal), 668Value = (Decimal)value; 675public Decimal Value 679return (Decimal)GetValue(ValueProperty); 696public Decimal InterpolateValue( 697Decimal baseValue, 714protected abstract Decimal InterpolateValueCore( 715Decimal baseValue,
System\Windows\Media\Animation\Generated\LinearKeyFrames.cs (4)
196public LinearDecimalKeyFrame(Decimal value) 204public LinearDecimalKeyFrame(Decimal value, KeyTime keyTime) 230protected override Decimal InterpolateValueCore(Decimal baseValue, double keyFrameProgress)
System\Windows\Media\Animation\Generated\SplineKeyFrames.cs (5)
301public SplineDecimalKeyFrame(Decimal value) 310public SplineDecimalKeyFrame(Decimal value, KeyTime keyTime) 320public SplineDecimalKeyFrame(Decimal value, KeyTime keyTime, KeySpline keySpline) 351protected override Decimal InterpolateValueCore(Decimal baseValue, double keyFrameProgress)
PresentationFramework (4)
MS\Internal\Data\DefaultValueConverter.cs (1)
527typeof(Decimal),typeof(Boolean),
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
219case 126: t = () => typeof(Decimal); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
3429typeof(System.Decimal),
System\Windows\Markup\KnownTypes.cs (1)
5673case KnownElements.Decimal: t = typeof(System.Decimal); break;
Swaggatherer (1)
SwaggathererApplication.cs (1)
86var precedence = RoutePrecedence.ComputeInbound(entries[i].Template);
System.Linq.Expressions (3)
System\Linq\Expressions\Interpreter\CallInstruction.Generated.cs (3)
62case TypeCode.Decimal: return FastCreate<Decimal>(target, pi); 106case TypeCode.Decimal: return FastCreate<T0, Decimal>(target, pi); 148case TypeCode.Decimal: return new FuncCallInstruction<T0, T1, Decimal>(target);
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (1)
1971decimal IConvertible.ToDecimal(IFormatProvider? provider) => throw InvalidCast(nameof(Decimal));
System.Private.DataContractSerialization (3)
System\Xml\XmlDictionaryReader.cs (3)
1684throw XmlExceptionHelper.CreateConversionException(nameof(Decimal), exception); 1688throw XmlExceptionHelper.CreateConversionException(nameof(Decimal), exception); 1692throw XmlExceptionHelper.CreateConversionException(nameof(Decimal), exception);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
128[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Decimal))]
xunit.assert (4)
EqualityAsserts.cs (4)
490 var expectedRounded = Math.Round(expected, precision); 491 var actualRounded = Math.Round(actual, precision); 971 var expectedRounded = Math.Round(expected, precision); 972 var actualRounded = Math.Round(actual, precision);