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