Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
AddParticleToExpected()
[2/2]
static
void
System.Xml.Schema.ContentValidator.AddParticleToExpected
(
XmlSchemaParticle
p
,
XmlSchemaSet
schemaSet
,
ArrayList
particles
,
bool
global
)
inline
static
inherited
Definition at line
100
of file
ContentValidator.cs
.
101
{
102
if
(!
particles
.Contains(p))
103
{
104
particles
.Add(p);
105
}
106
if
(!(p
is
XmlSchemaElement
xmlSchemaElement
) || (!
global
&&
xmlSchemaElement
.RefName.IsEmpty))
107
{
108
return
;
109
}
110
XmlSchemaObjectTable substitutionGroups =
schemaSet
.SubstitutionGroups;
111
XmlSchemaSubstitutionGroup
xmlSchemaSubstitutionGroup
= (XmlSchemaSubstitutionGroup)substitutionGroups[
xmlSchemaElement
.QualifiedName];
112
if
(
xmlSchemaSubstitutionGroup
==
null
)
113
{
114
return
;
115
}
116
for
(
int
i = 0;
i
<
xmlSchemaSubstitutionGroup
.Members.Count;
i
++)
117
{
118
XmlSchemaElement
xmlSchemaElement2
= (XmlSchemaElement)
xmlSchemaSubstitutionGroup
.Members[i];
119
if
(!
xmlSchemaElement
.QualifiedName.Equals(
xmlSchemaElement2
.QualifiedName) && !
particles
.Contains(
xmlSchemaElement2
))
120
{
121
particles
.Add(
xmlSchemaElement2
);
122
}
123
}
124
}
System.Text.RegularExpressions.ExceptionArgument.i
@ i
System.Xml.ValueHandleType.Dictionary
@ Dictionary
References
System.Xml.Dictionary
.
System
Xml
Schema
RangeContentValidator
Generated by
1.10.0