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

◆ ToString()

override string System.Xml.Schema.NamespaceList.ToString ( )
inline

Definition at line 110 of file NamespaceList.cs.

111 {
112 switch (_type)
113 {
114 case ListType.Any:
115 return "##any";
116 case ListType.Other:
117 return "##other";
118 case ListType.Set:
119 {
121 bool flag = true;
122 foreach (string key in _set.Keys)
123 {
124 if (flag)
125 {
126 flag = false;
127 }
128 else
129 {
130 stringBuilder.Append(' ');
131 }
132 if (key == _targetNamespace)
133 {
134 stringBuilder.Append("##targetNamespace");
135 }
136 else if (key.Length == 0)
137 {
138 stringBuilder.Append("##local");
139 }
140 else
141 {
142 stringBuilder.Append(key);
143 }
144 }
145 return stringBuilder.ToString();
146 }
147 default:
148 return string.Empty;
149 }
150 }
virtual ICollection Keys
Definition Hashtable.cs:532

References System.Xml.Schema.NamespaceList._set, System.Xml.Schema.NamespaceList._targetNamespace, System.Xml.Schema.NamespaceList._type, System.Xml.Dictionary, System.key, and System.Collections.Hashtable.Keys.