172 references to 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
)
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
101
{ decimal.
MaxValue
, nameof(decimal.
MaxValue
) },
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
101
{ decimal.
MaxValue
, nameof(decimal.
MaxValue
) },
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
101
{ decimal.
MaxValue
, nameof(decimal.
MaxValue
) },
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Conversions.cs (1)
4320
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.Workspaces (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
101
{ decimal.
MaxValue
, nameof(decimal.
MaxValue
) },
Microsoft.Data.Analysis (3)
PrimitiveDataFrameColumnComputations.cs (3)
1334
var ret = decimal.
MaxValue
;
1551
var value = decimal.
MaxValue
;
1574
var value = decimal.
MaxValue
;
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\LiteralSpecialValues.cs (2)
101
{ decimal.
MaxValue
, nameof(decimal.
MaxValue
) },
System.Data.Common (3)
System\Data\Common\DecimalStorage.cs (1)
105
decimal min = decimal.
MaxValue
;
System\Data\DataSet.cs (1)
3503
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)
21
public static FieldInfo Decimal_MaxValue => field ??= 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 (9)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.cs (2)
1230
static decimal IMinMaxValue<decimal>.MaxValue =>
MaxValue
;
1601
result = (actualValue >= new UInt128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ?
MaxValue
: (decimal)actualValue;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
1430
decimal actualResult = (value >= +79228162514264337593543950336.0) ? decimal.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Half.cs (1)
2109
decimal actualResult = (value == PositiveInfinity) ? decimal.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Int128.cs (2)
1803
decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.
MaxValue
:
1876
decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\BFloat16.cs (1)
1896
decimal actualResult = ((float)value >= +79228162514264337593543950336.0f) ? decimal.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NFloat.cs (1)
1600
decimal actualResult = (value >= +79228162514264337593543950336.0f) ? decimal.
MaxValue
:
src\runtime\src\libraries\System.Private.CoreLib\src\System\Single.cs (1)
1449
decimal actualResult = (value >= +79228162514264337593543950336.0f) ? decimal.
MaxValue
:
System.Private.DataContractSerialization (2)
System\Runtime\Serialization\SchemaExporter.cs (1)
725
any.MaxOccurs = decimal.
MaxValue
;
System\Runtime\Serialization\SchemaImporter.cs (1)
791
if (any.MaxOccurs != 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
;
446
any.MaxOccurs = decimal.
MaxValue
;
654
choice.MaxOccurs = repeats ? decimal.
MaxValue
: 1;
803
any.MaxOccurs = repeats ? decimal.
MaxValue
: 1;
812
decimal maxOccurs = repeats || accessor.IsUnbounded ? decimal.
MaxValue
: 1;
System.Runtime.Numerics (6)
System\Numerics\BigInteger.cs (2)
4609
decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.
MaxValue
:
4820
decimal actualResult = (value >= new Int128(0x0000_0000_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF)) ? decimal.
MaxValue
:
System\Numerics\Complex.cs (4)
1870
decimal actualResult = (value.m_real >= (double)decimal.
MaxValue
) ? decimal.
MaxValue
:
2012
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));