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

◆ GetMappingParticle()

int System.Xml.Schema.SchemaCollectionCompiler.GetMappingParticle ( XmlSchemaParticle particle,
XmlSchemaObjectCollection collection )
inlineprivate

Definition at line 1479 of file SchemaCollectionCompiler.cs.

1480 {
1481 for (int i = 0; i < collection.Count; i++)
1482 {
1483 if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i]))
1484 {
1485 return i;
1486 }
1487 }
1488 return -1;
1489 }
bool IsValidRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)

References System.collection, and System.Xml.Schema.SchemaCollectionCompiler.IsValidRestriction().

Referenced by System.Xml.Schema.SchemaCollectionCompiler.IsSequenceFromAll(), and System.Xml.Schema.SchemaCollectionCompiler.IsSequenceFromChoice().