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