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

◆ IsDatasetParticle()

bool System.Data.XSDSchema.IsDatasetParticle ( XmlSchemaParticle pt)
inlineprivate

Definition at line 485 of file XSDSchema.cs.

486 {
488 if (particleItems == null)
489 {
490 return false;
491 }
492 bool flag = FromInference && pt is XmlSchemaChoice;
494 {
496 {
497 if (flag && pt.MaxOccurs > 1m && ((XmlSchemaElement)item).SchemaType is XmlSchemaComplexType)
498 {
499 ((XmlSchemaElement)item).MaxOccurs = pt.MaxOccurs;
500 }
501 if ((((XmlSchemaElement)item).RefName.Name.Length == 0 || (FromInference && (!(((XmlSchemaElement)item).MaxOccurs != 1m) || ((XmlSchemaElement)item).SchemaType is XmlSchemaComplexType))) && !IsTable((XmlSchemaElement)item))
502 {
503 return false;
504 }
505 }
507 {
508 return false;
509 }
510 }
511 return true;
512 }
bool IsTable(XmlSchemaElement node)
XmlSchemaObjectCollection GetParticleItems(XmlSchemaParticle pt)
Definition XSDSchema.cs:799
bool IsDatasetParticle(XmlSchemaParticle pt)
Definition XSDSchema.cs:485

References System.Xml.Dictionary, System.Data.XSDSchema.FromInference, System.Data.XSDSchema.GetParticleItems(), System.Data.XSDSchema.IsDatasetParticle(), System.Data.XSDSchema.IsTable(), System.item, and System.Xml.Schema.XmlSchemaParticle.MaxOccurs.

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