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

◆ GetExpectedParticles()

XmlSchemaParticle[] System.Xml.Schema.XmlSchemaValidator.GetExpectedParticles ( )
inline

Definition at line 976 of file XmlSchemaValidator.cs.

977 {
978 if (_currentState == ValidatorState.Start || _currentState == ValidatorState.TopLevelTextOrWS)
979 {
980 if (_partialValidationType != null)
981 {
982 if (_partialValidationType is XmlSchemaElement xmlSchemaElement)
983 {
984 return new XmlSchemaParticle[1] { xmlSchemaElement };
985 }
986 return Array.Empty<XmlSchemaParticle>();
987 }
989 ArrayList arrayList = new ArrayList(values.Count);
990 foreach (XmlSchemaElement item in values)
991 {
992 ContentValidator.AddParticleToExpected(item, _schemaSet, arrayList, global: true);
993 }
994 return arrayList.ToArray(typeof(XmlSchemaParticle)) as XmlSchemaParticle[];
995 }
996 if (_context.ElementDecl != null)
997 {
999 if (arrayList2 != null)
1000 {
1001 return arrayList2.ToArray(typeof(XmlSchemaParticle)) as XmlSchemaParticle[];
1002 }
1003 }
1004 return Array.Empty<XmlSchemaParticle>();
1005 }
virtual ArrayList ExpectedParticles(ValidationState context, bool isRequiredOnly, XmlSchemaSet schemaSet)
XmlSchemaObjectTable GlobalElements

References System.Xml.Schema.XmlSchemaValidator._context, System.Xml.Schema.XmlSchemaValidator._currentState, System.Xml.Schema.XmlSchemaValidator._partialValidationType, System.Xml.Schema.XmlSchemaValidator._schemaSet, System.Xml.Schema.ContentValidator.AddParticleToExpected(), System.Xml.Schema.SchemaElementDecl.ContentValidator, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.Schema.ContentValidator.ExpectedParticles(), System.Xml.Schema.XmlSchemaSet.GlobalElements, System.item, System.values, and System.Xml.Schema.XmlSchemaObjectTable.Values.