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

◆ TrimNamespace()

string System.Runtime.Serialization.Json.XmlObjectSerializerReadContextComplexJson.TrimNamespace ( string serverTypeNamespace)
inlinepackage

Definition at line 169 of file XmlObjectSerializerReadContextComplexJson.cs.

170 {
171 if (!string.IsNullOrEmpty(serverTypeNamespace))
172 {
173 switch (serverTypeNamespace[0])
174 {
175 case '#':
176 serverTypeNamespace = "http://schemas.datacontract.org/2004/07/" + serverTypeNamespace.AsSpan(1);
177 break;
178 case '\\':
179 if (serverTypeNamespace.Length >= 2)
180 {
181 char c = serverTypeNamespace[1];
182 if (c == '#' || c == '\\')
183 {
185 }
186 }
187 break;
188 }
189 }
190 return serverTypeNamespace;
191 }

References System.Runtime.Serialization.Dictionary.