48 writes to MaxOccurs
System.Data (5)
fx\src\data\System\Data\DataSet.cs (1)
3311sequence.MaxOccurs = Decimal.MaxValue;
fx\src\data\System\Data\DataTable.cs (1)
5922any.MaxOccurs = Decimal.MaxValue;
fx\src\data\System\Data\XMLSchema.cs (3)
476((XmlSchemaElement)el).MaxOccurs = pt.MaxOccurs; 779((XmlSchemaElement)el).MaxOccurs = pt.MaxOccurs; 2311((XmlSchemaElement)choiceEl).MaxOccurs = ((XmlSchemaParticle)el).MaxOccurs;
System.Runtime.Serialization (1)
System\Runtime\Serialization\SchemaExporter.cs (1)
730any.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.Xml (36)
System\Xml\Schema\Inference\Infer.cs (5)
1108el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1117el.MaxOccurs = decimal.MaxValue; //set it to unbounded 1185xsc.MaxOccurs = decimal.MaxValue; 2394newElement.MaxOccurs = copyElement.MaxOccurs; 2493el.MaxOccurs = decimal.MaxValue; //set it to unbounded
System\Xml\Schema\Preprocessor.cs (2)
1579particle.MaxOccurs = decimal.One; 1586element.MaxOccurs = decimal.One;
System\Xml\Schema\SchemaCollectionCompiler.cs (8)
886choice.MaxOccurs = element.MaxOccurs; 936groupRefBase.MaxOccurs = groupRef.MaxOccurs; 948newAll.MaxOccurs = all.MaxOccurs; 966newSequence.MaxOccurs = all.MaxOccurs; 987newChoice.MaxOccurs = choice.MaxOccurs; 1022newSequence.MaxOccurs = sequence.MaxOccurs; 1166baseParticle.MaxOccurs = decimal.MaxValue; 1168baseParticle.MaxOccurs *= baseGroupBase.MaxOccurs;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (2)
1267particle.MaxOccurs = decimal.One; 1273element.MaxOccurs = decimal.One;
System\Xml\Schema\SchemaSetCompiler.cs (8)
983choice.MaxOccurs = element.MaxOccurs; 1034groupRefBase.MaxOccurs = groupRef.MaxOccurs; 1048newAll.MaxOccurs = all.MaxOccurs; 1075newChoice.MaxOccurs = choice.MaxOccurs; 1111newSequence.MaxOccurs = sequence.MaxOccurs; 1416virtualSeq.MaxOccurs = 1; 1426virtualChoice.MaxOccurs = 1; 1436virtualAll.MaxOccurs = 1;
System\Xml\Schema\XmlSchemaComplexType.cs (1)
66anyElement.MaxOccurs = decimal.MaxValue;
System\Xml\Serialization\SoapSchemaExporter.cs (2)
246choice.MaxOccurs = repeats ? decimal.MaxValue : 1; 259element.MaxOccurs = repeats ? decimal.MaxValue : 1;
System\Xml\Serialization\XmlSchemaExporter.cs (8)
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; 747element.MaxOccurs = maxOccurs; 762refElement.MaxOccurs = maxOccurs;
118 references to MaxOccurs
System.Data (16)
fx\src\data\System\Data\DataSet.cs (2)
3555if (((XmlSchemaSequence)ct.Particle).MaxOccurs == Decimal.MaxValue) 3559else if (any0.MaxOccurs == Decimal.MaxValue)
fx\src\data\System\Data\XMLSchema.cs (14)
475if (isChoice && pt.MaxOccurs > Decimal.One && (((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) // we know frominference condition 476((XmlSchemaElement)el).MaxOccurs = pt.MaxOccurs; 479if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != Decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))) 778if (this.FromInference && pt is XmlSchemaChoice && pt.MaxOccurs > Decimal.One && (el.SchemaType is XmlSchemaComplexType)) 779((XmlSchemaElement)el).MaxOccurs = pt.MaxOccurs; 1255table.MaxOccurs = node.MaxOccurs; 1398table.MaxOccurs = node.MaxOccurs; 2290if ((((XmlSchemaElement)el).MaxOccurs != Decimal.One ) && (!isComplexTypeOrValidElementType)) { 2310if (((XmlSchemaParticle)el).MaxOccurs > Decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir 2311((XmlSchemaElement)choiceEl).MaxOccurs = ((XmlSchemaParticle)el).MaxOccurs; 2312if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != Decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2421if (node.MaxOccurs == decimal.Zero) 2437if ( (node.MaxOccurs > decimal.One) && typeNode == null ){ 2464if ( (node.MaxOccurs > decimal.One) && typeNode == null ){
System.Runtime.Serialization (4)
System\Runtime\Serialization\SchemaImporter.cs (4)
581return (localElement.MaxOccursString == Globals.OccursUnbounded || localElement.MaxOccurs > 1); 646if (rootSequence.MaxOccurs != 1) 813if (any.MaxOccurs != Decimal.MaxValue) 972if (element.MaxOccurs != 1)
System.ServiceModel (2)
System\ServiceModel\Description\MessageContractImporter.cs (2)
1506if (element.MaxOccurs > 1) 1620if (element.MaxOccurs > 1)
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (2)
284for (int count = 0; element != null && count < 2 && element.MaxOccurs > count; ++count) 781if (firstElement != null && firstElement.MaxOccurs > 1)
System.Web.Extensions (1)
Script\Services\WebServiceTypeData.cs (1)
136return (localElement.MaxOccursString == OccursUnbounded || localElement.MaxOccurs > 1);
System.Xml (93)
System\Xml\Schema\Inference\Infer.cs (3)
2393if (copyElement.MaxOccurs != Decimal.One) { 2394newElement.MaxOccurs = copyElement.MaxOccurs; 2491if (setMaxOccurs || el.MaxOccurs > 1)
System\Xml\Schema\Preprocessor.cs (7)
896if (groupRef.MinOccurs != decimal.One || groupRef.MaxOccurs != decimal.One) { 1137if (element.MinOccurs > element.MaxOccurs) { 1578if (particle.MaxOccurs != decimal.One) { 1585if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.One) { 1594if (particle.MinOccurs > particle.MaxOccurs) { 1595particle.MinOccurs = particle.MaxOccurs;
System\Xml\Schema\SchemaCollectionCompiler.cs (33)
886choice.MaxOccurs = element.MaxOccurs; 919if (groupRef.MinOccurs != decimal.One || groupRef.MaxOccurs != decimal.One) { 936groupRefBase.MaxOccurs = groupRef.MaxOccurs; 948newAll.MaxOccurs = all.MaxOccurs; 966newSequence.MaxOccurs = all.MaxOccurs; 970else if (!root && all.Items.Count == 1 && all.MinOccurs == decimal.One && all.MaxOccurs == decimal.One) { 987newChoice.MaxOccurs = choice.MaxOccurs; 991if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) { 1010else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.One && choice.MaxOccurs == decimal.One) { 1022newSequence.MaxOccurs = sequence.MaxOccurs; 1026if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaSequence) { 1042else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.One && sequence.MaxOccurs == decimal.One) { 1139if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseAny.MinOccurs, baseAny.MaxOccurs)) { 1164if ( baseParticle.MaxOccurs != decimal.MaxValue) { 1165if (baseGroupBase.MaxOccurs == decimal.MaxValue) 1168baseParticle.MaxOccurs *= baseGroupBase.MaxOccurs; 1231if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseChoice.MinOccurs, baseChoice.MaxOccurs) || derivedSequence.Items.Count > baseChoice.Items.Count) { 1247if (p.MaxOccurs == decimal.MaxValue) 1250maxOccurs += p.MaxOccurs; 1253if (sequence.MaxOccurs == decimal.MaxValue) { 1257maxOccurs *= sequence.MaxOccurs; 1262return IsValidOccurrenceRangeRestriction(derivedParticle.MinOccurs, derivedParticle.MaxOccurs, baseParticle.MinOccurs, baseParticle.MaxOccurs); 1286maxOccurs = particle.MaxOccurs; 1308if (particle.MaxOccurs == decimal.MaxValue) 1311maxOccurs *= particle.MaxOccurs; 1336if (particle.MaxOccurs == decimal.MaxValue) 1339maxOccurs *= particle.MaxOccurs; 2095if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.One) { 2098else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.One) { 2101else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) { 2104else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) { 2108contentValidator.AddLeafRange(particle.MinOccurs, particle.MaxOccurs);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (7)
590if (groupRef.MinOccurs != decimal.One || groupRef.MaxOccurs != decimal.One) { 827if (element.MinOccurs > element.MaxOccurs) { 1266if (particle.MaxOccurs != decimal.One) { 1272if (element.MaxOccurs != decimal.Zero && element.MaxOccurs != decimal.One) { 1281if (particle.MinOccurs > particle.MaxOccurs) { 1282particle.MinOccurs = particle.MaxOccurs;
System\Xml\Schema\SchemaSetCompiler.cs (29)
983choice.MaxOccurs = element.MaxOccurs; 1017if (groupRef.MinOccurs > decimal.One || groupRef.MaxOccurs != decimal.One) { 1034groupRefBase.MaxOccurs = groupRef.MaxOccurs; 1048newAll.MaxOccurs = all.MaxOccurs; 1075newChoice.MaxOccurs = choice.MaxOccurs; 1080if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) { 1099else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.One && choice.MaxOccurs == decimal.One) { 1111newSequence.MaxOccurs = sequence.MaxOccurs; 1117if (p1.MinOccurs == decimal.One && p1.MaxOccurs == decimal.One && p1Sequence != null) { 1132else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.One && sequence.MaxOccurs == decimal.One) { 1153if (xss.MinOccurs == one && xss.MaxOccurs == one) { 1163if (xsc.MinOccurs == one && xsc.MaxOccurs == one) { 1176if (xsa.MinOccurs == one && xsa.MaxOccurs == one) { 1350if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseAny.MinOccurs, baseAny.MaxOccurs)) { 1518if (derivedSequence.MaxOccurs == decimal.MaxValue) { 1522maxOccurs = derivedSequence.MaxOccurs * derivedSequence.Items.Count; 1524if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseChoice.MinOccurs, baseChoice.MaxOccurs) || derivedSequence.Items.Count > baseChoice.Items.Count) { 1535return IsValidOccurrenceRangeRestriction(derivedParticle.MinOccurs, derivedParticle.MaxOccurs, baseParticle.MinOccurs, baseParticle.MaxOccurs); 1561maxOccurs = particle.MaxOccurs; 1582if (particle.MaxOccurs == decimal.MaxValue) 1585maxOccurs *= particle.MaxOccurs; 1610if (particle.MaxOccurs == decimal.MaxValue) 1613maxOccurs *= particle.MaxOccurs; 2451if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.One) { 2454else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.One) { 2457else if (particle.MinOccurs == decimal.Zero && particle.MaxOccurs == decimal.MaxValue) { 2460else if (particle.MinOccurs == decimal.One && particle.MaxOccurs == decimal.MaxValue) { 2464contentValidator.AddLeafRange(particle.MinOccurs, particle.MaxOccurs);
System\Xml\Serialization\Mappings.cs (2)
1114if (e1.MaxOccurs != e2.MaxOccurs)
System\Xml\Serialization\SchemaObjectWriter.cs (12)
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));