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

◆ IsElementFromGroupBase()

bool System.Xml.Schema.SchemaCollectionCompiler.IsElementFromGroupBase ( XmlSchemaElement derivedElement,
XmlSchemaGroupBase baseGroupBase,
bool skipEmptableOnly )
inlineprivate

Definition at line 1329 of file SchemaCollectionCompiler.cs.

1330 {
1331 bool flag = false;
1332 for (int i = 0; i < baseGroupBase.Items.Count; i++)
1333 {
1334 XmlSchemaParticle xmlSchemaParticle = (XmlSchemaParticle)baseGroupBase.Items[i];
1335 if (!flag)
1336 {
1337 string minOccursString = xmlSchemaParticle.MinOccursString;
1338 string maxOccursString = xmlSchemaParticle.MaxOccursString;
1340 if (xmlSchemaParticle.MaxOccurs != decimal.MaxValue)
1341 {
1342 if (baseGroupBase.MaxOccurs == decimal.MaxValue)
1343 {
1344 xmlSchemaParticle.MaxOccurs = decimal.MaxValue;
1345 }
1346 else
1347 {
1349 }
1350 }
1354 }
1356 {
1357 return false;
1358 }
1359 }
1360 return flag;
1361 }
bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
bool IsParticleEmptiable(XmlSchemaParticle particle)

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Schema.SchemaCollectionCompiler.IsParticleEmptiable(), and System.Xml.Schema.SchemaCollectionCompiler.IsValidRestriction().

Referenced by System.Xml.Schema.SchemaCollectionCompiler.IsValidRestriction().