50 writes to MinOccurs
dotnet-svcutil-lib (50)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (15)
602
xse.
MinOccurs
= 0;
619
elementReference.
MinOccurs
= 0;
685
ct.Particle.
MinOccurs
= 0;
766
ct.Particle.
MinOccurs
= 0;
803
ct.Particle.
MinOccurs
= decimal.Zero;
942
ct.Particle.
MinOccurs
= 0; //previously this was simple type so subelements did not exist
951
((XmlSchemaSequence)ct.Particle).
MinOccurs
= decimal.Zero;
993
subElement.
MinOccurs
= 0;
1074
e.
MinOccurs
= 0;
1150
((XmlSchemaElement)minOccursCandidates[i]).
MinOccurs
= decimal.Zero;
1161
((XmlSchemaElement)minOccursCandidates[i]).
MinOccurs
= decimal.Zero;
1210
subElement.
MinOccurs
= decimal.Zero;
2430
newElement.
MinOccurs
= copyElement.MinOccurs;
2536
el.
MinOccurs
= 0;
2540
el.
MinOccurs
= 1;
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (3)
1386
element.
MinOccurs
= decimal.Zero;
1946
particle.
MinOccurs
= decimal.One;
1971
particle.
MinOccurs
= particle.MaxOccurs;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (8)
1114
choice.
MinOccurs
= element.MinOccurs;
1176
groupRefBase.
MinOccurs
= groupRef.MinOccurs;
1191
newAll.
MinOccurs
= all.MinOccurs;
1213
newSequence.
MinOccurs
= all.MinOccurs;
1239
newChoice.
MinOccurs
= choice.MinOccurs;
1285
newSequence.
MinOccurs
= sequence.MinOccurs;
1444
baseAny.
MinOccurs
= decimal.Zero;
1468
baseParticle.
MinOccurs
*= baseGroupBase.MinOccurs;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (3)
1033
element.
MinOccurs
= decimal.Zero;
1593
particle.
MinOccurs
= decimal.One;
1617
particle.
MinOccurs
= particle.MaxOccurs;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (9)
1239
choice.
MinOccurs
= element.MinOccurs;
1302
groupRefBase.
MinOccurs
= groupRef.MinOccurs;
1319
newAll.
MinOccurs
= all.MinOccurs;
1353
newChoice.
MinOccurs
= choice.MinOccurs;
1400
newSequence.
MinOccurs
= sequence.MinOccurs;
1711
baseAny.
MinOccurs
= decimal.Zero;
1774
virtualSeq.
MinOccurs
= 1;
1786
virtualChoice.
MinOccurs
= 1;
1798
virtualAll.
MinOccurs
= 1;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (1)
68
anyElement.
MinOccurs
= decimal.Zero;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (2)
285
choice.
MinOccurs
= repeats ? 0 : 1;
297
element.
MinOccurs
= repeats || valueTypeOptional ? 0 : 1;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (6)
184
any.
MinOccurs
= 0;
230
any.
MinOccurs
= 0;
698
choice.
MinOccurs
= repeats ? 0 : 1;
847
any.
MinOccurs
= 0;
875
element.
MinOccurs
= minOccurs;
892
refElement.
MinOccurs
= minOccurs;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaExporter.cs (3)
93
any.
MinOccurs
= 0;
105
any.
MinOccurs
= 0;
146
iSerializableWildcardElement.
MinOccurs
= 0;
107 references to MinOccurs
dotnet-svcutil-lib (107)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (4)
1134
if (bItemNotUsedYet && el.
MinOccurs
!= decimal.Zero)
2428
if (copyElement.
MinOccurs
!= Decimal.One && this.Occurrence == InferenceOption.Relaxed)
2430
newElement.MinOccurs = copyElement.
MinOccurs
;
2538
else if (el.
MinOccurs
> 1)
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (5)
1079
if (groupRef.
MinOccurs
!= decimal.One || groupRef.MaxOccurs != decimal.One)
1384
if (element.
MinOccurs
> element.MaxOccurs)
1944
if (particle.
MinOccurs
!= decimal.Zero && particle.
MinOccurs
!= decimal.One)
1969
if (particle.
MinOccurs
> particle.MaxOccurs)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (38)
1061
if (choice.
MinOccurs
!= decimal.Zero)
1114
choice.MinOccurs = element.
MinOccurs
;
1157
if (groupRef.
MinOccurs
!= decimal.One || groupRef.MaxOccurs != decimal.One)
1165
if (groupRef.
MinOccurs
!= decimal.Zero)
1176
groupRefBase.MinOccurs = groupRef.
MinOccurs
;
1191
newAll.MinOccurs = all.
MinOccurs
;
1213
newSequence.MinOccurs = all.
MinOccurs
;
1218
else if (!root && all.Items.Count == 1 && all.
MinOccurs
== decimal.One && all.MaxOccurs == decimal.One)
1239
newChoice.MinOccurs = choice.
MinOccurs
;
1246
if (p1.
MinOccurs
== decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice)
1264
if (choice.
MinOccurs
!= decimal.Zero)
1270
else if (!root && choice.Items.Count == 1 && choice.
MinOccurs
== decimal.One && choice.MaxOccurs == decimal.One)
1285
newSequence.MinOccurs = sequence.
MinOccurs
;
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))
1468
baseParticle.MinOccurs *= baseGroupBase.
MinOccurs
;
1554
if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseChoice.
MinOccurs
, baseChoice.MaxOccurs) || derivedSequence.Items.Count > baseChoice.Items.Count)
1573
minOccurs += p.
MinOccurs
;
1579
minOccurs *= sequence.
MinOccurs
;
1592
return IsValidOccurrenceRangeRestriction(derivedParticle.
MinOccurs
, derivedParticle.MaxOccurs, baseParticle.
MinOccurs
, baseParticle.MaxOccurs);
1621
minOccurs = particle.
MinOccurs
;
1648
minOccurs *= particle.
MinOccurs
;
1682
minOccurs *= particle.
MinOccurs
;
2453
AllElementsContentValidator contentValidator = new AllElementsContentValidator(complexType.ContentType, all.Items.Count, all.
MinOccurs
== decimal.Zero);
2457
if (!contentValidator.AddElement(localElement.QualifiedName, localElement, localElement.
MinOccurs
== decimal.Zero))
2548
if (localElement.
MinOccurs
== decimal.Zero)
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 (5)
730
if (groupRef.
MinOccurs
!= decimal.One || groupRef.MaxOccurs != decimal.One)
1031
if (element.
MinOccurs
> element.MaxOccurs)
1591
if (particle.
MinOccurs
!= decimal.Zero && particle.
MinOccurs
!= decimal.One)
1615
if (particle.
MinOccurs
> particle.MaxOccurs)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (37)
1181
if (choice.
MinOccurs
!= decimal.Zero)
1239
choice.MinOccurs = element.
MinOccurs
;
1283
if (groupRef.
MinOccurs
> decimal.One || groupRef.MaxOccurs != decimal.One)
1291
if (groupRef.
MinOccurs
!= decimal.Zero)
1302
groupRefBase.MinOccurs = groupRef.
MinOccurs
;
1319
newAll.MinOccurs = all.
MinOccurs
;
1353
newChoice.MinOccurs = choice.
MinOccurs
;
1361
if (p1.
MinOccurs
== decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice)
1379
if (choice.
MinOccurs
!= decimal.Zero)
1385
else if (!root && choice.Items.Count == 1 && choice.
MinOccurs
== decimal.One && choice.MaxOccurs == decimal.One)
1400
newSequence.MinOccurs = sequence.
MinOccurs
;
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))
1903
minOccurs = derivedSequence.
MinOccurs
* 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);
1957
minOccurs = particle.
MinOccurs
;
1983
minOccurs *= particle.
MinOccurs
;
2017
minOccurs *= particle.
MinOccurs
;
2896
AllElementsContentValidator contentValidator = new AllElementsContentValidator(complexType.ContentType, all.Items.Count, all.
MinOccurs
== decimal.Zero);
2900
if (!contentValidator.AddElement(localElement.QualifiedName, localElement, localElement.
MinOccurs
== decimal.Zero))
2991
if (localElement.
MinOccurs
== decimal.Zero)
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)
1324
if (e1.
MinOccurs
!= e2.
MinOccurs
)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (6)
961
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
975
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
1141
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
1155
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
1171
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
1212
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
571
if (element.
MinOccurs
== 0 && member.TypeDesc.IsValueType && !member.TypeDesc.HasIsEmpty)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
345
accessor.IsOptional = element.
MinOccurs
== 0m;
1562
if (element.
MinOccurs
== 0 && member.TypeDesc.IsValueType && !element.HasDefault && !member.TypeDesc.HasIsEmpty)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (7)
606
element.
MinOccurs
== 0)
643
if (rootSequence.
MinOccurs
!= 1)
874
if (wildcard.
MinOccurs
!= iSerializableWildcardElement.
MinOccurs
)
875
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, string.Format(SRSerialization.ISerializableWildcardMinOccursMustBe, iSerializableWildcardElement.
MinOccurs
));
964
if (element.
MinOccurs
> 1)
971
bool memberIsRequired = (element.
MinOccurs
> 0);