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

◆ GetTableNamespace()

string System.Data.XSDSchema.GetTableNamespace ( XmlSchemaIdentityConstraint key)
inlineprivate

Definition at line 2385 of file XSDSchema.cs.

2386 {
2387 string xPath = key.Selector.XPath;
2388 string[] array = xPath.Split('/');
2389 string empty = string.Empty;
2390 string text = array[^1];
2391 if (text == null || text.Length == 0)
2392 {
2393 throw ExceptionBuilder.InvalidSelector(xPath);
2394 }
2395 if (text.Contains(':'))
2396 {
2397 empty = text.Substring(0, text.IndexOf(':'));
2400 }
2401 return GetMsdataAttribute(key, "TableNamespace");
2402 }
string GetNamespaceFromPrefix(string prefix)
static string GetMsdataAttribute(XmlSchemaAnnotated node, string ln)
Definition XSDSchema.cs:342
static ? string DecodeName(string? name)
Definition XmlConvert.cs:55

References System.array, System.Xml.XmlConvert.DecodeName(), System.Data.ExceptionBuilder.InvalidSelector(), System.key, and System.text.