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