37 writes to MaxOccurs
dotnet-svcutil-lib (37)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (5)
1118el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1127el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1195xsc.MaxOccurs = decimal.MaxValue; 2434newElement.MaxOccurs = copyElement.MaxOccurs; 2534el.MaxOccurs = decimal.MaxValue; //set it to unbounded
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (2)
1951particle.MaxOccurs = decimal.One; 1960element.MaxOccurs = decimal.One;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (8)
1115choice.MaxOccurs = element.MaxOccurs; 1177groupRefBase.MaxOccurs = groupRef.MaxOccurs; 1192newAll.MaxOccurs = all.MaxOccurs; 1214newSequence.MaxOccurs = all.MaxOccurs; 1240newChoice.MaxOccurs = choice.MaxOccurs; 1286newSequence.MaxOccurs = sequence.MaxOccurs; 1472baseParticle.MaxOccurs = decimal.MaxValue; 1474baseParticle.MaxOccurs *= baseGroupBase.MaxOccurs;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (2)
1598particle.MaxOccurs = decimal.One; 1606element.MaxOccurs = decimal.One;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (8)
1240choice.MaxOccurs = element.MaxOccurs; 1303groupRefBase.MaxOccurs = groupRef.MaxOccurs; 1320newAll.MaxOccurs = all.MaxOccurs; 1354newChoice.MaxOccurs = choice.MaxOccurs; 1401newSequence.MaxOccurs = sequence.MaxOccurs; 1775virtualSeq.MaxOccurs = 1; 1787virtualChoice.MaxOccurs = 1; 1799virtualAll.MaxOccurs = 1;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (1)
69anyElement.MaxOccurs = decimal.MaxValue;
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 (8)
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; 876element.MaxOccurs = maxOccurs; 893refElement.MaxOccurs = maxOccurs;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (1)
106any.MaxOccurs = Decimal.MaxValue;
109 references to MaxOccurs
dotnet-svcutil-lib (109)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (3)
2432if (copyElement.MaxOccurs != Decimal.One) 2434newElement.MaxOccurs = copyElement.MaxOccurs; 2532if (setMaxOccurs || el.MaxOccurs > 1)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (7)
1079if (groupRef.MinOccurs != decimal.One || groupRef.MaxOccurs != decimal.One) 1384if (element.MinOccurs > element.MaxOccurs) 1949if (particle.MaxOccurs != decimal.One) 1958if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.One) 1969if (particle.MinOccurs > particle.MaxOccurs) 1971particle.MinOccurs = particle.MaxOccurs;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (38)
1115choice.MaxOccurs = element.MaxOccurs; 1157if (groupRef.MinOccurs != decimal.One || groupRef.MaxOccurs != decimal.One) 1177groupRefBase.MaxOccurs = groupRef.MaxOccurs; 1192newAll.MaxOccurs = all.MaxOccurs; 1214newSequence.MaxOccurs = all.MaxOccurs; 1218else if (!root && all.Items.Count == 1 && all.MinOccurs == decimal.One && all.MaxOccurs == decimal.One) 1240newChoice.MaxOccurs = choice.MaxOccurs; 1246if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) 1270else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.One && choice.MaxOccurs == decimal.One) 1286newSequence.MaxOccurs = sequence.MaxOccurs; 1292if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaSequence) 1312else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.One && sequence.MaxOccurs == decimal.One) 1438if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseAny.MinOccurs, baseAny.MaxOccurs)) 1469if (baseParticle.MaxOccurs != decimal.MaxValue) 1471if (baseGroupBase.MaxOccurs == decimal.MaxValue) 1474baseParticle.MaxOccurs *= baseGroupBase.MaxOccurs; 1554if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseChoice.MinOccurs, baseChoice.MaxOccurs) || derivedSequence.Items.Count > baseChoice.Items.Count) 1574if (p.MaxOccurs == decimal.MaxValue) 1577maxOccurs += p.MaxOccurs; 1580if (sequence.MaxOccurs == decimal.MaxValue) 1586maxOccurs *= sequence.MaxOccurs; 1592return IsValidOccurrenceRangeRestriction(derivedParticle.MinOccurs, derivedParticle.MaxOccurs, baseParticle.MinOccurs, baseParticle.MaxOccurs); 1622maxOccurs = particle.MaxOccurs; 1651if (particle.MaxOccurs == decimal.MaxValue) 1654maxOccurs *= particle.MaxOccurs; 1685if (particle.MaxOccurs == decimal.MaxValue) 1688maxOccurs *= particle.MaxOccurs; 2580if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.One) 2584else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.One) 2588else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 2592else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) 2598sb.Append("{" + particle.MinOccurs.ToString(NumberFormatInfo.InvariantInfo) + ", " + particle.MaxOccurs.ToString(NumberFormatInfo.InvariantInfo) + "}"); 2645if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.One) 2649else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.One) 2653else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 2657else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) 2663contentValidator.AddLeafRange(particle.MinOccurs, particle.MaxOccurs);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (7)
730if (groupRef.MinOccurs != decimal.One || groupRef.MaxOccurs != decimal.One) 1031if (element.MinOccurs > element.MaxOccurs) 1596if (particle.MaxOccurs != decimal.One) 1604if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.One) 1615if (particle.MinOccurs > particle.MaxOccurs) 1617particle.MinOccurs = particle.MaxOccurs;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (34)
1240choice.MaxOccurs = element.MaxOccurs; 1283if (groupRef.MinOccurs > decimal.One || groupRef.MaxOccurs != decimal.One) 1303groupRefBase.MaxOccurs = groupRef.MaxOccurs; 1320newAll.MaxOccurs = all.MaxOccurs; 1354newChoice.MaxOccurs = choice.MaxOccurs; 1361if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) 1385else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.One && choice.MaxOccurs == decimal.One) 1401newSequence.MaxOccurs = sequence.MaxOccurs; 1409if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1Sequence != null) 1428else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.One && sequence.MaxOccurs == decimal.One) 1455if (xss.MinOccurs == one && xss.MaxOccurs == one) 1468if (xsc.MinOccurs == one && xsc.MaxOccurs == one) 1485if (xsa.MinOccurs == one && xsa.MaxOccurs == one) 1704if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseAny.MinOccurs, baseAny.MaxOccurs)) 1904if (derivedSequence.MaxOccurs == decimal.MaxValue) 1910maxOccurs = derivedSequence.MaxOccurs * derivedSequence.Items.Count; 1912if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseChoice.MinOccurs, baseChoice.MaxOccurs) || derivedSequence.Items.Count > baseChoice.Items.Count) 1926return IsValidOccurrenceRangeRestriction(derivedParticle.MinOccurs, derivedParticle.MaxOccurs, baseParticle.MinOccurs, baseParticle.MaxOccurs); 1958maxOccurs = particle.MaxOccurs; 1986if (particle.MaxOccurs == decimal.MaxValue) 1989maxOccurs *= particle.MaxOccurs; 2020if (particle.MaxOccurs == decimal.MaxValue) 2023maxOccurs *= particle.MaxOccurs; 3023if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.One) 3027else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.One) 3031else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 3035else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) 3041sb.Append("{" + particle.MinOccurs.ToString(NumberFormatInfo.InvariantInfo) + ", " + particle.MaxOccurs.ToString(NumberFormatInfo.InvariantInfo) + "}"); 3089if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.One) 3093else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.One) 3097else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) 3101else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) 3107contentValidator.AddLeafRange(particle.MinOccurs, particle.MaxOccurs);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (2)
1326if (e1.MaxOccurs != e2.MaxOccurs)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (12)
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\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (4)
580return (localElement.MaxOccursString == Globals.OccursUnbounded || localElement.MaxOccurs > 1); 645if (rootSequence.MaxOccurs != 1) 807if (any.MaxOccurs != Decimal.MaxValue) 966if (element.MaxOccurs != 1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (2)
1494if (element.MaxOccurs > 1) 1608if (element.MaxOccurs > 1)