68 writes to MinOccurs
System.Data (4)
fx\src\data\System\Data\DataSet.cs (2)
3302
any.
MinOccurs
= 0;
3308
any.
MinOccurs
= 0; // when recognizing WSDL - MinOccurs="0" denotes DataSet, a MinOccurs="1" for DataTable
fx\src\data\System\Data\DataTable.cs (2)
5921
any.
MinOccurs
= 0;
5928
any.
MinOccurs
= 1; // when recognizing WSDL - MinOccurs="0" denotes DataSet, a MinOccurs="1" for DataTable
System.Runtime.Serialization (5)
System\Runtime\Serialization\SchemaExporter.cs (5)
155
element.
MinOccurs
= 0;
376
element.
MinOccurs
= 0;
729
any.
MinOccurs
= 0;
743
any.
MinOccurs
= 0;
868
iSerializableWildcardElement.
MinOccurs
= 0;
System.ServiceModel (2)
System\ServiceModel\Description\MessageContractExporter.cs (2)
177
anyElement.
MinOccurs
= 0;
400
element.
MinOccurs
= 0;
System.ServiceModel.Discovery (9)
System\ServiceModel\Discovery\SchemaUtility.cs (9)
300
any.
MinOccurs
= 0;
334
typesElement.
MinOccurs
= 0;
339
scopesElement.
MinOccurs
= 0;
344
xAddrsElement.
MinOccurs
= 0;
349
metadataVersionElement.
MinOccurs
= 0;
355
any.
MinOccurs
= 0;
390
typesElement.
MinOccurs
= 0;
395
scopesElement.
MinOccurs
= 0;
401
any.
MinOccurs
= 0;
System.Web.Services (1)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
84
element.
MinOccurs
= decimal.Zero;
System.Xml (47)
System\Xml\Schema\Inference\Infer.cs (15)
601
xse.
MinOccurs
= 0;
618
elementReference.
MinOccurs
= 0;
684
ct.Particle.
MinOccurs
= 0;
764
ct.Particle.
MinOccurs
= 0;
801
ct.Particle.
MinOccurs
=decimal.Zero;
940
ct.Particle.
MinOccurs
=0; //previously this was simple type so subelements did not exist
949
((XmlSchemaSequence)ct.Particle).
MinOccurs
= decimal.Zero;
992
subElement.
MinOccurs
= 0;
1064
e.
MinOccurs
= 0;
1140
((XmlSchemaElement) minOccursCandidates[i]).
MinOccurs
= decimal.Zero;
1151
((XmlSchemaElement) minOccursCandidates[i]).
MinOccurs
= decimal.Zero;
1200
subElement.
MinOccurs
= decimal.Zero;
2391
newElement.
MinOccurs
= copyElement.MinOccurs;
2495
el.
MinOccurs
= 0;
2499
el.
MinOccurs
= 1;
System\Xml\Schema\Preprocessor.cs (3)
1138
element.
MinOccurs
= decimal.Zero;
1575
particle.
MinOccurs
= decimal.One;
1595
particle.
MinOccurs
= particle.MaxOccurs;
System\Xml\Schema\SchemaCollectionCompiler.cs (8)
885
choice.
MinOccurs
= element.MinOccurs;
935
groupRefBase.
MinOccurs
= groupRef.MinOccurs;
947
newAll.
MinOccurs
= all.MinOccurs;
965
newSequence.
MinOccurs
= all.MinOccurs;
986
newChoice.
MinOccurs
= choice.MinOccurs;
1021
newSequence.
MinOccurs
= sequence.MinOccurs;
1144
baseAny.
MinOccurs
= decimal.Zero;
1163
baseParticle.
MinOccurs
*= baseGroupBase.MinOccurs;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (3)
828
element.
MinOccurs
= decimal.Zero;
1263
particle.
MinOccurs
= decimal.One;
1282
particle.
MinOccurs
= particle.MaxOccurs;
System\Xml\Schema\SchemaSetCompiler.cs (9)
982
choice.
MinOccurs
= element.MinOccurs;
1033
groupRefBase.
MinOccurs
= groupRef.MinOccurs;
1047
newAll.
MinOccurs
= all.MinOccurs;
1074
newChoice.
MinOccurs
= choice.MinOccurs;
1110
newSequence.
MinOccurs
= sequence.MinOccurs;
1356
baseAny.
MinOccurs
= decimal.Zero;
1415
virtualSeq.
MinOccurs
= 1;
1425
virtualChoice.
MinOccurs
= 1;
1435
virtualAll.
MinOccurs
= 1;
System\Xml\Schema\XmlSchemaComplexType.cs (1)
65
anyElement.
MinOccurs
= decimal.Zero;
System\Xml\Serialization\SoapSchemaExporter.cs (2)
247
choice.
MinOccurs
= repeats ? 0 : 1;
258
element.
MinOccurs
= repeats || valueTypeOptional ? 0 : 1;
System\Xml\Serialization\XmlSchemaExporter.cs (6)
163
any.
MinOccurs
= 0;
205
any.
MinOccurs
= 0;
598
choice.
MinOccurs
= repeats ? 0 : 1;
722
any.
MinOccurs
= 0;
746
element.
MinOccurs
= minOccurs;
761
refElement.
MinOccurs
= minOccurs;
98 references to MinOccurs
System.Data (3)
fx\src\data\System\Data\XMLSchema.cs (3)
1254
table.MinOccurs = node.
MinOccurs
;
1397
table.MinOccurs = node.
MinOccurs
;
2158
column.AllowDBNull = this.FromInference ||(elem.
MinOccurs
== 0 ) || elem.IsNillable;
System.Runtime.Serialization (7)
System\Runtime\Serialization\SchemaImporter.cs (7)
607
element.
MinOccurs
== 0)
644
if (rootSequence.
MinOccurs
!= 1)
880
if (wildcard.
MinOccurs
!= iSerializableWildcardElement.
MinOccurs
)
881
ThrowISerializableTypeCannotBeImportedException(typeName.Name, typeName.Namespace, SR.GetString(SR.ISerializableWildcardMinOccursMustBe, iSerializableWildcardElement.
MinOccurs
));
970
if (element.
MinOccurs
> 1)
977
bool memberIsRequired = (element.
MinOccurs
> 0);
System.Xml (88)
System\Xml\Schema\Inference\Infer.cs (4)
1124
if (bItemNotUsedYet && el.
MinOccurs
!=decimal.Zero)
2389
if (copyElement.
MinOccurs
!= Decimal.One && this.Occurrence == InferenceOption.Relaxed)
2391
newElement.MinOccurs = copyElement.
MinOccurs
;
2497
else if (el.
MinOccurs
> 1)
System\Xml\Schema\Preprocessor.cs (5)
896
if (groupRef.
MinOccurs
!= decimal.One || groupRef.MaxOccurs != decimal.One) {
1137
if (element.
MinOccurs
> element.MaxOccurs) {
1574
if (particle.
MinOccurs
!= decimal.Zero && particle.
MinOccurs
!= decimal.One) {
1594
if (particle.
MinOccurs
> particle.MaxOccurs) {
System\Xml\Schema\SchemaCollectionCompiler.cs (32)
845
if (choice.
MinOccurs
!= decimal.Zero) {
885
choice.MinOccurs = element.
MinOccurs
;
919
if (groupRef.
MinOccurs
!= decimal.One || groupRef.MaxOccurs != decimal.One) {
925
if (groupRef.
MinOccurs
!= decimal.Zero) {
935
groupRefBase.MinOccurs = groupRef.
MinOccurs
;
947
newAll.MinOccurs = all.
MinOccurs
;
965
newSequence.MinOccurs = all.
MinOccurs
;
970
else if (!root && all.Items.Count == 1 && all.
MinOccurs
== decimal.One && all.MaxOccurs == decimal.One) {
986
newChoice.MinOccurs = choice.
MinOccurs
;
991
if (p1.
MinOccurs
== decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) {
1005
if (choice.
MinOccurs
!= decimal.Zero) {
1010
else if (!root && choice.Items.Count == 1 && choice.
MinOccurs
== decimal.One && choice.MaxOccurs == decimal.One) {
1021
newSequence.MinOccurs = sequence.
MinOccurs
;
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)) {
1163
baseParticle.MinOccurs *= baseGroupBase.
MinOccurs
;
1231
if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseChoice.
MinOccurs
, baseChoice.MaxOccurs) || derivedSequence.Items.Count > baseChoice.Items.Count) {
1246
minOccurs += p.
MinOccurs
;
1252
minOccurs *= sequence.
MinOccurs
;
1262
return IsValidOccurrenceRangeRestriction(derivedParticle.
MinOccurs
, derivedParticle.MaxOccurs, baseParticle.
MinOccurs
, baseParticle.MaxOccurs);
1285
minOccurs = particle.
MinOccurs
;
1306
minOccurs *= particle.
MinOccurs
;
1334
minOccurs *= particle.
MinOccurs
;
1944
AllElementsContentValidator contentValidator = new AllElementsContentValidator(complexType.ContentType, all.Items.Count, all.
MinOccurs
== decimal.Zero);
1947
if (!contentValidator.AddElement(localElement.QualifiedName, localElement, localElement.
MinOccurs
== decimal.Zero)) {
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 (5)
590
if (groupRef.
MinOccurs
!= decimal.One || groupRef.MaxOccurs != decimal.One) {
827
if (element.
MinOccurs
> element.MaxOccurs) {
1262
if (particle.
MinOccurs
!= decimal.Zero && particle.
MinOccurs
!= decimal.One) {
1281
if (particle.
MinOccurs
> particle.MaxOccurs) {
System\Xml\Schema\SchemaSetCompiler.cs (31)
938
if (choice.
MinOccurs
!= decimal.Zero) {
982
choice.MinOccurs = element.
MinOccurs
;
1017
if (groupRef.
MinOccurs
> decimal.One || groupRef.MaxOccurs != decimal.One) {
1023
if (groupRef.
MinOccurs
!= decimal.Zero) {
1033
groupRefBase.MinOccurs = groupRef.
MinOccurs
;
1047
newAll.MinOccurs = all.
MinOccurs
;
1074
newChoice.MinOccurs = choice.
MinOccurs
;
1080
if (p1.
MinOccurs
== decimal.One && p1.MaxOccurs == decimal.One && p1 is XmlSchemaChoice) {
1094
if (choice.
MinOccurs
!= decimal.Zero) {
1099
else if (!root && choice.Items.Count == 1 && choice.
MinOccurs
== decimal.One && choice.MaxOccurs == decimal.One) {
1110
newSequence.MinOccurs = sequence.
MinOccurs
;
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)) {
1517
minOccurs = derivedSequence.
MinOccurs
* 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);
1560
minOccurs = particle.
MinOccurs
;
1580
minOccurs *= particle.
MinOccurs
;
1608
minOccurs *= particle.
MinOccurs
;
2299
AllElementsContentValidator contentValidator = new AllElementsContentValidator(complexType.ContentType, all.Items.Count, all.
MinOccurs
== decimal.Zero);
2302
if (!contentValidator.AddElement(localElement.QualifiedName, localElement, localElement.
MinOccurs
== decimal.Zero)) {
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)
1112
if (e1.
MinOccurs
!= e2.
MinOccurs
)
System\Xml\Serialization\SchemaObjectWriter.cs (6)
799
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
812
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
950
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
963
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
978
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
1011
WriteAttribute("minOccurs", "", XmlConvert.ToString(o.
MinOccurs
));
System\Xml\Serialization\SoapSchemaImporter.cs (1)
509
if (element.
MinOccurs
== 0 && member.TypeDesc.IsValueType && !member.TypeDesc.HasIsEmpty) {
System\Xml\Serialization\XmlSchemaImporter.cs (2)
315
accessor.IsOptional = element.
MinOccurs
== 0m;
1363
if (element.
MinOccurs
== 0 && member.TypeDesc.IsValueType && !element.HasDefault && !member.TypeDesc.HasIsEmpty) {