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

◆ ToString()

static string System.Xml.Serialization.SchemaObjectWriter.ToString ( NamespaceList list)
inlinestaticpackage

Definition at line 98 of file SchemaObjectWriter.cs.

99 {
100 if (list == null)
101 {
102 return null;
103 }
104 switch (list.Type)
105 {
106 case NamespaceList.ListType.Any:
107 return "##any";
108 case NamespaceList.ListType.Other:
109 return "##other";
110 case NamespaceList.ListType.Set:
111 {
113 foreach (string item in list.Enumerate)
114 {
115 arrayList.Add(item);
116 }
117 arrayList.Sort();
119 bool flag = true;
120 foreach (string item2 in arrayList)
121 {
122 if (flag)
123 {
124 flag = false;
125 }
126 else
127 {
128 stringBuilder.Append(' ');
129 }
130 if (item2.Length == 0)
131 {
132 stringBuilder.Append("##local");
133 }
134 else
135 {
136 stringBuilder.Append(item2);
137 }
138 }
139 return stringBuilder.ToString();
140 }
141 default:
142 return list.ToString();
143 }
144 }

References System.Xml.Dictionary, System.item, and System.list.

Referenced by System.Xml.Serialization.XmlSchemaObjectComparer.NameOf().