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

◆ InitComplexType()

static void System.Xml.Schema.XsdBuilder.InitComplexType ( XsdBuilder builder,
string value )
inlinestaticprivate

Definition at line 1471 of file XsdBuilder.cs.

1472 {
1473 builder._xso = (builder._complexType = new XmlSchemaComplexType());
1474 switch (builder.ParentElement)
1475 {
1476 case SchemaNames.Token.XsdSchema:
1478 builder._schema.Items.Add(builder._complexType);
1479 break;
1480 case SchemaNames.Token.XsdRedefine:
1481 builder._redefine.Items.Add(builder._complexType);
1482 break;
1483 case SchemaNames.Token.XsdElement:
1484 if (builder._element.SchemaType != null)
1485 {
1486 builder.SendValidationEvent(System.SR.Sch_DupElement, "complexType");
1487 }
1488 if (builder._element.Constraints.Count != 0)
1489 {
1490 builder.SendValidationEvent(System.SR.Sch_TypeAfterConstraints, null);
1491 }
1492 builder._element.SchemaType = builder._complexType;
1493 break;
1494 }
1495 }
void Add(TKey key, TValue value)
static string Sch_DupElement
Definition SR.cs:480
static string Sch_TypeAfterConstraints
Definition SR.cs:1130
Definition SR.cs:7

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.SR.Sch_DupElement, and System.SR.Sch_TypeAfterConstraints.