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

◆ CompileParticleElements()

void System.Xml.Schema.SchemaCollectionCompiler.CompileParticleElements ( XmlSchemaComplexType complexType,
XmlSchemaParticle particle )
inlineprivate

Definition at line 2313 of file SchemaCollectionCompiler.cs.

2314 {
2315 if (particle is XmlSchemaElement)
2316 {
2317 XmlSchemaElement xmlSchemaElement = (XmlSchemaElement)particle;
2319 if (complexType.LocalElements[xmlSchemaElement.QualifiedName] == null)
2320 {
2321 complexType.LocalElements.Add(xmlSchemaElement.QualifiedName, xmlSchemaElement);
2322 return;
2323 }
2324 XmlSchemaElement xmlSchemaElement2 = (XmlSchemaElement)complexType.LocalElements[xmlSchemaElement.QualifiedName];
2325 if (xmlSchemaElement2.ElementSchemaType != xmlSchemaElement.ElementSchemaType)
2326 {
2328 }
2329 }
2330 else if (particle is XmlSchemaGroupBase)
2331 {
2332 XmlSchemaObjectCollection items = ((XmlSchemaGroupBase)particle).Items;
2333 for (int i = 0; i < items.Count; i++)
2334 {
2335 CompileParticleElements(complexType, (XmlSchemaParticle)items[i]);
2336 }
2337 }
2338 }
void Add(TKey key, TValue value)
static string Sch_ElementTypeCollision
Definition SR.cs:1074
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.SchemaCollectionCompiler.CompileElement(), System.Xml.Schema.SchemaCollectionCompiler.CompileParticleElements(), System.Collections.CollectionBase.Count, System.SR.Sch_ElementTypeCollision, and System.Xml.Schema.BaseProcessor.SendValidationEvent().

Referenced by System.Xml.Schema.SchemaCollectionCompiler.CompileCompexTypeElements(), and System.Xml.Schema.SchemaCollectionCompiler.CompileParticleElements().