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

◆ GetTableName()

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

Definition at line 2404 of file XSDSchema.cs.

2405 {
2406 string xPath = key.Selector.XPath;
2407 string text = xPath.Split('/', ':')[^1];
2408 if (text == null || text.Length == 0)
2409 {
2410 throw ExceptionBuilder.InvalidSelector(xPath);
2411 }
2412 return XmlConvert.DecodeName(text);
2413 }
static ? string DecodeName(string? name)
Definition XmlConvert.cs:55

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

Referenced by System.Data.XSDSchema.HandleConstraint(), and System.Data.XSDSchema.HandleKeyref().