Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetMinMaxOccurs()

void System.Xml.Schema.XmlSchemaInference.SetMinMaxOccurs ( XmlSchemaElement el,
bool setMaxOccurs )
inlinepackage

Definition at line 2517 of file XmlSchemaInference.cs.

2518 {
2519 if (Occurrence == InferenceOption.Relaxed)
2520 {
2521 if (setMaxOccurs || el.MaxOccurs > 1m)
2522 {
2523 el.MaxOccurs = decimal.MaxValue;
2524 }
2525 el.MinOccurs = 0m;
2526 }
2527 else if (el.MinOccurs > 1m)
2528 {
2529 el.MinOccurs = 1m;
2530 }
2531 }

References System.Xml.Schema.XmlSchemaParticle.MaxOccurs, and System.Xml.Schema.XmlSchemaParticle.MinOccurs.