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