Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ NameOf() [1/2]

static XmlQualifiedName System.Xml.Serialization.XmlSchemaObjectComparer.NameOf ( XmlSchemaObject o)
inlinestaticpackage

Definition at line 15 of file XmlSchemaObjectComparer.cs.

16 {
18 {
19 return ((XmlSchemaAttribute)o).QualifiedName;
20 }
22 {
23 return ((XmlSchemaAttributeGroup)o).QualifiedName;
24 }
26 {
27 return ((XmlSchemaComplexType)o).QualifiedName;
28 }
30 {
31 return ((XmlSchemaSimpleType)o).QualifiedName;
32 }
34 {
35 return ((XmlSchemaElement)o).QualifiedName;
36 }
38 {
39 return ((XmlSchemaGroup)o).QualifiedName;
40 }
42 {
43 return ((XmlSchemaGroupRef)o).RefName;
44 }
46 {
47 return ((XmlSchemaNotation)o).QualifiedName;
48 }
50 {
52 if (xmlSchemaSequence.Items.Count == 0)
53 {
54 return new XmlQualifiedName(".sequence", Namespace(o));
55 }
56 return NameOf(xmlSchemaSequence.Items[0]);
57 }
58 if (o is XmlSchemaAll)
59 {
61 if (xmlSchemaAll.Items.Count == 0)
62 {
63 return new XmlQualifiedName(".all", Namespace(o));
64 }
65 return NameOf(xmlSchemaAll.Items);
66 }
68 {
70 if (xmlSchemaChoice.Items.Count == 0)
71 {
72 return new XmlQualifiedName(".choice", Namespace(o));
73 }
74 return NameOf(xmlSchemaChoice.Items);
75 }
76 if (o is XmlSchemaAny)
77 {
78 return new XmlQualifiedName("*", SchemaObjectWriter.ToString(((XmlSchemaAny)o).NamespaceList));
79 }
81 {
82 return ((XmlSchemaIdentityConstraint)o).QualifiedName;
83 }
84 return new XmlQualifiedName("?", Namespace(o));
85 }
static XmlQualifiedName NameOf(XmlSchemaObject o)

References System.Xml.Dictionary, System.Xml.Serialization.XmlSchemaObjectComparer.NameOf(), System.Xml.Schema.Namespace, and System.Xml.Serialization.SchemaObjectWriter.ToString().

Referenced by System.Xml.Serialization.XmlSchemaObjectComparer.Compare(), System.Xml.Serialization.XmlSchemaObjectComparer.NameOf(), and System.Xml.Serialization.XmlSchemaObjectComparer.NameOf().