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

◆ PrintExpectedElements()

static string System.Xml.Schema.XmlSchemaValidator.PrintExpectedElements ( ArrayList expected,
bool getParticles )
inlinestaticpackage

Definition at line 2413 of file XmlSchemaValidator.cs.

2414 {
2415 if (getParticles)
2416 {
2418 object[] args = new string[1] { " " };
2420 XmlSchemaParticle xmlSchemaParticle = null;
2421 XmlSchemaParticle xmlSchemaParticle2 = null;
2424 if (expected.Count == 1)
2425 {
2426 xmlSchemaParticle2 = expected[0] as XmlSchemaParticle;
2427 }
2428 else
2429 {
2430 for (int i = 1; i < expected.Count; i++)
2431 {
2432 xmlSchemaParticle = expected[i - 1] as XmlSchemaParticle;
2433 xmlSchemaParticle2 = expected[i] as XmlSchemaParticle;
2434 XmlQualifiedName qualifiedName = xmlSchemaParticle.GetQualifiedName();
2435 if (qualifiedName.Namespace != xmlSchemaParticle2.GetQualifiedName().Namespace)
2436 {
2439 arrayList.Clear();
2440 stringBuilder.Append(value);
2441 }
2442 else
2443 {
2445 }
2446 }
2447 }
2448 arrayList.Add(xmlSchemaParticle2.GetQualifiedName());
2450 return stringBuilder.ToString();
2451 }
2452 return PrintNames(expected);
2453 }
void Add(TKey key, TValue value)
static string Sch_ContinuationString
Definition SR.cs:910
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
static string PrintNames(ArrayList expected)
static void PrintNamesWithNS(ArrayList expected, StringBuilder builder)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.SR.Format(), System.Xml.Schema.XmlSchemaValidator.PrintNames(), System.Xml.Schema.XmlSchemaValidator.PrintNamesWithNS(), System.SR.Sch_ContinuationString, and System.value.