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

◆ IsTable()

bool System.Data.XSDSchema.IsTable ( XmlSchemaElement node)
inlinepackage

Definition at line 2415 of file XSDSchema.cs.

2416 {
2417 if (node.MaxOccurs == 0m)
2418 {
2419 return false;
2420 }
2421 XmlAttribute[] unhandledAttributes = node.UnhandledAttributes;
2422 if (unhandledAttributes != null)
2423 {
2425 {
2426 if (xmlAttribute.LocalName == "DataType" && xmlAttribute.Prefix == "msdata" && xmlAttribute.NamespaceURI == "urn:schemas-microsoft-com:xml-msdata")
2427 {
2428 return false;
2429 }
2430 }
2431 }
2432 object obj = FindTypeNode(node);
2433 if (node.MaxOccurs > 1m && obj == null)
2434 {
2435 return true;
2436 }
2437 if (obj == null || !(obj is XmlSchemaComplexType))
2438 {
2439 return false;
2440 }
2442 if (xmlSchemaComplexType.IsAbstract)
2443 {
2444 throw ExceptionBuilder.CannotInstantiateAbstract(node.Name);
2445 }
2446 return true;
2447 }
XmlSchemaAnnotated FindTypeNode(XmlSchemaAnnotated node)

References System.Data.ExceptionBuilder.CannotInstantiateAbstract(), and System.obj.

Referenced by System.Data.XSDSchema.HandleParticle(), and System.Data.XSDSchema.IsDatasetParticle().