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