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

◆ PrintNamesWithNS()

static void System.Xml.Schema.XmlSchemaValidator.PrintNamesWithNS ( ArrayList expected,
StringBuilder builder )
inlinestaticprivate

Definition at line 2469 of file XmlSchemaValidator.cs.

2470 {
2471 XmlQualifiedName xmlQualifiedName = expected[0] as XmlQualifiedName;
2472 if (expected.Count == 1)
2473 {
2474 if (xmlQualifiedName.Name == "*")
2475 {
2477 }
2478 else if (xmlQualifiedName.Namespace.Length != 0)
2479 {
2481 }
2482 else
2483 {
2485 }
2486 return;
2487 }
2488 bool flag = false;
2489 bool flag2 = true;
2491 for (int i = 0; i < expected.Count; i++)
2492 {
2493 xmlQualifiedName = expected[i] as XmlQualifiedName;
2494 if (xmlQualifiedName.Name == "*")
2495 {
2496 flag = true;
2497 continue;
2498 }
2499 if (flag2)
2500 {
2501 flag2 = false;
2502 }
2503 else
2504 {
2505 stringBuilder.Append(", ");
2506 }
2507 stringBuilder.Append(xmlQualifiedName.Name);
2508 }
2509 if (flag)
2510 {
2511 stringBuilder.Append(", ");
2513 }
2514 else if (xmlQualifiedName.Namespace.Length != 0)
2515 {
2517 }
2518 else
2519 {
2521 }
2522 }
static string Sch_ElementNameAndNamespace
Definition SR.cs:906
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Sch_ElementName
Definition SR.cs:908
static string Sch_AnyElement
Definition SR.cs:914
Definition SR.cs:7
static void EnumerateAny(StringBuilder builder, string namespaces)

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Schema.XmlSchemaValidator.EnumerateAny(), System.SR.Format(), System.SR.Sch_AnyElement, System.SR.Sch_ElementName, and System.SR.Sch_ElementNameAndNamespace.

Referenced by System.Xml.Schema.XmlSchemaValidator.PrintExpectedElements().