194 references to MaxValue
BinaryFormatTests (4)
FormatTests\FormattedObject\HashTableTests.cs (2)
182{ "Decimal", decimal.MaxValue } 210{ decimal.MinValue, decimal.MaxValue },
FormatTests\FormattedObject\ListTests.cs (1)
35decimal.MaxValue,
FormatTests\FormattedObject\PrimitiveTypeTests.cs (1)
137decimal.MaxValue,
dotnet-svcutil-lib (67)
FrameworkFork\Microsoft.Xml\Xml\schema\DatatypeImplementation.cs (3)
1787private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.MinValue, decimal.MaxValue); 3497private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.Zero, decimal.MaxValue); 3752private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.One, decimal.MaxValue);
FrameworkFork\Microsoft.Xml\Xml\schema\FacetChecker.cs (1)
982return decimal.MaxValue;
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (4)
1118el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1127el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1195xsc.MaxOccurs = decimal.MaxValue; 2534el.MaxOccurs = decimal.MaxValue; //set it to unbounded
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (23)
1469if (baseParticle.MaxOccurs != decimal.MaxValue) 1471if (baseGroupBase.MaxOccurs == decimal.MaxValue) 1472baseParticle.MaxOccurs = decimal.MaxValue; 1574if (p.MaxOccurs == decimal.MaxValue) 1575maxOccurs = decimal.MaxValue; 1576else if (maxOccurs != decimal.MaxValue) 1580if (sequence.MaxOccurs == decimal.MaxValue) 1582maxOccurs = decimal.MaxValue; 1584else if (maxOccurs != decimal.MaxValue) 1632minOccurs = decimal.MaxValue; 1649if (maxOccurs != decimal.MaxValue) 1651if (particle.MaxOccurs == decimal.MaxValue) 1652maxOccurs = decimal.MaxValue; 1674if (maxOccurs != decimal.MaxValue) 1676if (max == decimal.MaxValue) 1677maxOccurs = decimal.MaxValue; 1683if (maxOccurs != decimal.MaxValue) 1685if (particle.MaxOccurs == decimal.MaxValue) 1686maxOccurs = decimal.MaxValue; 2588else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 2592else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) 2653else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 2657else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (16)
1904if (derivedSequence.MaxOccurs == decimal.MaxValue) 1906maxOccurs = decimal.MaxValue; 1968minOccurs = decimal.MaxValue; 1984if (maxOccurs != decimal.MaxValue) 1986if (particle.MaxOccurs == decimal.MaxValue) 1987maxOccurs = decimal.MaxValue; 2009if (maxOccurs != decimal.MaxValue) 2011if (max == decimal.MaxValue) 2012maxOccurs = decimal.MaxValue; 2018if (maxOccurs != decimal.MaxValue) 2020if (particle.MaxOccurs == decimal.MaxValue) 2021maxOccurs = decimal.MaxValue; 3031else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 3035else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) 3097else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 3101else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (1)
69anyElement.MaxOccurs = decimal.MaxValue;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (2)
69return (_flags & Occurs.Max) == 0 ? null : (_maxOccurs == decimal.MaxValue) ? "unbounded" : XmlConvert.ToString(_maxOccurs); 82_maxOccurs = decimal.MaxValue;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (6)
962WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 976WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1142WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1156WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1172WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1213WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (2)
284choice.MaxOccurs = repeats ? decimal.MaxValue : 1; 298element.MaxOccurs = repeats ? decimal.MaxValue : 1;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (7)
185any.MaxOccurs = decimal.MaxValue; 232any.MaxOccurs = decimal.MaxValue; 465any.MaxOccurs = decimal.MaxValue; 486any.MaxOccurs = decimal.MaxValue; 697choice.MaxOccurs = repeats ? decimal.MaxValue : 1; 848any.MaxOccurs = repeats ? decimal.MaxValue : 1; 857decimal maxOccurs = repeats || accessor.IsUnbounded ? decimal.MaxValue : 1;
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)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTests.SpecialTypes.cs (1)
193new object[] {"decimal", "decimal.MaxValue", decimal.MaxValue, true },
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
101{ decimal.MaxValue, nameof(decimal.MaxValue) },
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Conversions.cs (1)
3615case SpecialType.System_Decimal: return ((double)decimal.MinValue - 1D) < value && value < ((double)decimal.MaxValue + 1D);
Utilities\ValueSetFactory.DecimalTC.cs (2)
31decimal INumericTC<decimal>.MaxValue => decimal.MaxValue; 41Debug.Assert(value != decimal.MaxValue);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Syntax\SyntaxFactoryTests.cs (1)
362CheckLiteralToString(decimal.MaxValue, @"79228162514264337593543950335M");
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
117VerifySyntax<MemberAccessExpressionSyntax>(Generator.LiteralExpression(decimal.MaxValue), "global::System.Decimal.MaxValue");
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\Conversions.vb (2)
587New TypeAndValue(decimalType, Decimal.MaxValue), 1148New TypeAndValue(decimalType, Decimal.MaxValue),
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Syntax\SyntaxFactoryTests.vb (1)
99CheckLiteralToString(Decimal.MaxValue, "79228162514264337593543950335D")
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.vb (1)
113VerifySyntax(Of MemberAccessExpressionSyntax)(Generator.LiteralExpression(Decimal.MaxValue), "Global.System.Decimal.MaxValue")
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
101{ decimal.MaxValue, nameof(decimal.MaxValue) },
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
ObjectSerializationTests.cs (5)
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 (3)
PrimitiveDataFrameColumnComputations.cs (3)
1334var ret = decimal.MaxValue; 1551var value = decimal.MaxValue; 1574var value = decimal.MaxValue;
System.Data.Common (3)
System\Data\Common\DecimalStorage.cs (1)
105decimal min = decimal.MaxValue;
System\Data\DataSet.cs (1)
3506sequence.MaxOccurs = decimal.MaxValue;
System\Data\DataTable.cs (1)
6694any.MaxOccurs = decimal.MaxValue;
System.Linq.Expressions (2)
System\Linq\Expressions\Common\CachedReflectionInfo.cs (1)
51s_Decimal_MaxValue ??= typeof(decimal).GetField(nameof(decimal.MaxValue))!;
System\Linq\Expressions\Compiler\ILGen.cs (1)
1031if (value == decimal.MaxValue)
System.Linq.Parallel (4)
System\Linq\ParallelEnumerable.cs (4)
2155/// The sum is larger than <see cref="decimal.MaxValue"/>. 2178/// The sum is larger than <see cref="decimal.MaxValue"/>. 2387/// The sum is larger than <see cref="decimal.MaxValue"/>. 2411/// The sum is larger than <see cref="decimal.MaxValue"/>.
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1251static decimal IMinMaxValue<decimal>.MaxValue => MaxValue; 1622result = (actualValue >= new UInt128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? MaxValue : (decimal)actualValue;
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1408decimal actualResult = (value >= +79228162514264337593543950336.0) ? decimal.MaxValue :
src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2110decimal actualResult = (value == PositiveInfinity) ? decimal.MaxValue :
src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1814decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 1887decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue :
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1673decimal actualResult = (value >= +79228162514264337593543950336.0f) ? decimal.MaxValue :
src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1427decimal actualResult = (value >= +79228162514264337593543950336.0f) ? decimal.MaxValue :
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaExporter.cs (1)
728any.MaxOccurs = decimal.MaxValue;
System\Runtime\Serialization\SchemaImporter.cs (1)
792if (any.MaxOccurs != decimal.MaxValue)
System.Private.Windows.Core.Tests (4)
System\Private\Windows\Ole\BinaryFormatUtilitiesTests.cs (3)
49decimal.MaxValue 79new List<decimal> { decimal.MinValue, decimal.MaxValue }, 99new decimal[] { decimal.MinValue, decimal.MaxValue },
System\Value\StoringDecimal.cs (1)
11{ decimal.MaxValue },
System.Private.Xml (61)
System\Xml\Schema\DataTypeImplementation.cs (3)
1749private static readonly Numeric10FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.MinValue, decimal.MaxValue); 3429private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.Zero, decimal.MaxValue); 3676private static readonly FacetsChecker s_numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.One, decimal.MaxValue);
System\Xml\Schema\FacetChecker.cs (1)
975return decimal.MaxValue;
System\Xml\Schema\Inference\Infer.cs (4)
1095el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1104el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1172xsc.MaxOccurs = decimal.MaxValue; 2514el.MaxOccurs = decimal.MaxValue; //set it to unbounded
System\Xml\Schema\SchemaCollectionCompiler.cs (23)
1467if (baseParticle.MaxOccurs != decimal.MaxValue) 1469if (baseGroupBase.MaxOccurs == decimal.MaxValue) 1470baseParticle.MaxOccurs = decimal.MaxValue; 1572if (p.MaxOccurs == decimal.MaxValue) 1573maxOccurs = decimal.MaxValue; 1574else if (maxOccurs != decimal.MaxValue) 1578if (sequence.MaxOccurs == decimal.MaxValue) 1580maxOccurs = decimal.MaxValue; 1582else if (maxOccurs != decimal.MaxValue) 1630minOccurs = decimal.MaxValue; 1647if (maxOccurs != decimal.MaxValue) 1649if (particle.MaxOccurs == decimal.MaxValue) 1650maxOccurs = decimal.MaxValue; 1672if (maxOccurs != decimal.MaxValue) 1674if (max == decimal.MaxValue) 1675maxOccurs = decimal.MaxValue; 1681if (maxOccurs != decimal.MaxValue) 1683if (particle.MaxOccurs == decimal.MaxValue) 1684maxOccurs = decimal.MaxValue; 2497else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 2501else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) 2560else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 2564else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue)
System\Xml\Schema\SchemaSetCompiler.cs (14)
1918if (derivedSequence.MaxOccurs == decimal.MaxValue) 1920maxOccurs = decimal.MaxValue; 1982minOccurs = decimal.MaxValue; 1998if (maxOccurs != decimal.MaxValue) 2000if (particle.MaxOccurs == decimal.MaxValue) 2001maxOccurs = decimal.MaxValue; 2023if (maxOccurs != decimal.MaxValue) 2025if (max == decimal.MaxValue) 2026maxOccurs = decimal.MaxValue; 2032if (maxOccurs != decimal.MaxValue) 2034if (particle.MaxOccurs == decimal.MaxValue) 2035maxOccurs = decimal.MaxValue; 2941else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 2945else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue)
System\Xml\Schema\XmlSchemaComplexType.cs (1)
61anyElement.MaxOccurs = decimal.MaxValue;
System\Xml\Schema\XmlSchemaParticle.cs (2)
52return (_flags & Occurs.Max) == 0 ? null : (_maxOccurs == decimal.MaxValue) ? "unbounded" : XmlConvert.ToString(_maxOccurs); 65_maxOccurs = decimal.MaxValue;
System\Xml\Serialization\SchemaObjectWriter.cs (6)
961WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 974WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1136WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1150WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1166WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1207WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs));
System\Xml\Serialization\XmlSchemaExporter.cs (7)
159any.MaxOccurs = decimal.MaxValue; 205any.MaxOccurs = decimal.MaxValue; 426any.MaxOccurs = decimal.MaxValue; 447any.MaxOccurs = decimal.MaxValue; 658choice.MaxOccurs = repeats ? decimal.MaxValue : 1; 807any.MaxOccurs = repeats ? decimal.MaxValue : 1; 816decimal maxOccurs = repeats || accessor.IsUnbounded ? decimal.MaxValue : 1;
System.Runtime.Numerics (6)
System\Numerics\BigInteger.cs (2)
4696decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue : 4901decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.MaxValue :
System\Numerics\Complex.cs (4)
1840decimal actualResult = (value.m_real >= (double)decimal.MaxValue) ? decimal.MaxValue : 1976decimal actualResult = (value.m_real >= (double)decimal.MaxValue) ? decimal.MaxValue :
System.Text.Json (1)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (1)
697/// than <see cref="decimal.MaxValue"/>.
System.Windows.Forms (1)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
778maxDigits = (int)Math.Floor(Math.Log((double)decimal.MaxValue, baseSize));
System.Windows.Forms.Tests (9)
NumericUpDownTests.cs (6)
800upDown.Maximum = decimal.MaxValue; 801upDown.Value = decimal.MaxValue; 803upDown.Value.Should().Be(decimal.MaxValue); 810upDown.Maximum = decimal.MaxValue; 811upDown.Value = decimal.MaxValue - 1; 814upDown.Value.Should().Be(decimal.MaxValue);
System\Resources\ResxDataNodeTests.cs (2)
117{ "Decimal", decimal.MaxValue } 133{ decimal.MinValue, decimal.MaxValue },
System\Windows\Forms\AxHost.PropertyBagStreamTests.cs (1)
107decimal.MaxValue,