75 references to MaxValue
System.Data (5)
fx\src\data\System\Data\Common\DecimalStorage.cs (1)
97Decimal min = Decimal.MaxValue;
fx\src\data\System\Data\DataSet.cs (3)
3311sequence.MaxOccurs = Decimal.MaxValue; 3555if (((XmlSchemaSequence)ct.Particle).MaxOccurs == Decimal.MaxValue) 3559else if (any0.MaxOccurs == Decimal.MaxValue)
fx\src\data\System\Data\DataTable.cs (1)
5922any.MaxOccurs = Decimal.MaxValue;
System.Runtime.Serialization (2)
System\Runtime\Serialization\SchemaExporter.cs (1)
730any.MaxOccurs = Decimal.MaxValue;
System\Runtime\Serialization\SchemaImporter.cs (1)
813if (any.MaxOccurs != Decimal.MaxValue)
System.ServiceModel (2)
System\ServiceModel\Description\MessageContractExporter.cs (2)
178anyElement.MaxOccurs = decimal.MaxValue; 398element.MaxOccurs = Decimal.MaxValue;
System.ServiceModel.Discovery (3)
System\ServiceModel\Discovery\SchemaUtility.cs (3)
301any.MaxOccurs = decimal.MaxValue; 356any.MaxOccurs = decimal.MaxValue; 402any.MaxOccurs = decimal.MaxValue;
System.Web.Services (1)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
85element.MaxOccurs = decimal.MaxValue;
System.Windows.Forms (1)
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
829maxDigits = (int)Math.Floor(Math.Log((double)decimal.MaxValue, baseSize));
System.Xml (61)
System\Xml\Schema\DataTypeImplementation.cs (3)
1585static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.MinValue, decimal.MaxValue); 3179static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.Zero,decimal.MaxValue); 3419static readonly FacetsChecker numeric10FacetsChecker = new Numeric10FacetsChecker(decimal.One, decimal.MaxValue);
System\Xml\Schema\FacetChecker.cs (1)
813return decimal.MaxValue;
System\Xml\Schema\Inference\Infer.cs (4)
1108el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1117el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1185xsc.MaxOccurs = decimal.MaxValue; 2493el.MaxOccurs = decimal.MaxValue; //set it to unbounded
System\Xml\Schema\SchemaCollectionCompiler.cs (21)
1164if ( baseParticle.MaxOccurs != decimal.MaxValue) { 1165if (baseGroupBase.MaxOccurs == decimal.MaxValue) 1166baseParticle.MaxOccurs = decimal.MaxValue; 1247if (p.MaxOccurs == decimal.MaxValue) 1248maxOccurs = decimal.MaxValue; 1249else if (maxOccurs != decimal.MaxValue) 1253if (sequence.MaxOccurs == decimal.MaxValue) { 1254maxOccurs = decimal.MaxValue; 1256else if (maxOccurs != decimal.MaxValue) { 1293minOccurs = decimal.MaxValue; 1307if (maxOccurs != decimal.MaxValue) { 1308if (particle.MaxOccurs == decimal.MaxValue) 1309maxOccurs = decimal.MaxValue; 1327if (maxOccurs != decimal.MaxValue) { 1328if (max == decimal.MaxValue) 1329maxOccurs = decimal.MaxValue; 1335if (maxOccurs != decimal.MaxValue) { 1336if (particle.MaxOccurs == decimal.MaxValue) 1337maxOccurs = decimal.MaxValue; 2101else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) { 2104else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) {
System\Xml\Schema\SchemaSetCompiler.cs (14)
1518if (derivedSequence.MaxOccurs == decimal.MaxValue) { 1519maxOccurs = decimal.MaxValue; 1568minOccurs = decimal.MaxValue; 1581if (maxOccurs != decimal.MaxValue) { 1582if (particle.MaxOccurs == decimal.MaxValue) 1583maxOccurs = decimal.MaxValue; 1601if (maxOccurs != decimal.MaxValue) { 1602if (max == decimal.MaxValue) 1603maxOccurs = decimal.MaxValue; 1609if (maxOccurs != decimal.MaxValue) { 1610if (particle.MaxOccurs == decimal.MaxValue) 1611maxOccurs = decimal.MaxValue; 2457else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) { 2460else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) {
System\Xml\Schema\XmlSchemaComplexType.cs (1)
66anyElement.MaxOccurs = decimal.MaxValue;
System\Xml\Schema\XmlSchemaParticle.cs (2)
58return (flags & Occurs.Max) == 0 ? null : (maxOccurs == decimal.MaxValue) ? "unbounded" : XmlConvert.ToString(maxOccurs); 67maxOccurs = decimal.MaxValue;
System\Xml\Serialization\SchemaObjectWriter.cs (6)
800WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 813WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 951WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 964WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 979WriteAttribute("maxOccurs", "", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs)); 1012WriteAttribute(@"maxOccurs", @"", o.MaxOccurs == decimal.MaxValue ? "unbounded" : XmlConvert.ToString(o.MaxOccurs));
System\Xml\Serialization\SoapSchemaExporter.cs (2)
246choice.MaxOccurs = repeats ? decimal.MaxValue : 1; 259element.MaxOccurs = repeats ? decimal.MaxValue : 1;
System\Xml\Serialization\XmlSchemaExporter.cs (7)
164any.MaxOccurs = decimal.MaxValue; 207any.MaxOccurs = decimal.MaxValue; 403any.MaxOccurs = decimal.MaxValue; 421any.MaxOccurs = decimal.MaxValue; 597choice.MaxOccurs = repeats ? decimal.MaxValue : 1; 723any.MaxOccurs = repeats ? decimal.MaxValue : 1; 731decimal maxOccurs = repeats || accessor.IsUnbounded ? decimal.MaxValue : 1;