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

◆ GetExpectedAttributes()

XmlSchemaAttribute[] System.Xml.Schema.XmlSchemaValidator.GetExpectedAttributes ( )
inline

Definition at line 1007 of file XmlSchemaValidator.cs.

1008 {
1009 if (_currentState == ValidatorState.Element || _currentState == ValidatorState.Attribute)
1010 {
1011 SchemaElementDecl elementDecl = _context.ElementDecl;
1013 if (elementDecl != null)
1014 {
1015 foreach (SchemaAttDef value in elementDecl.AttDefs.Values)
1016 {
1017 if (_attPresence[value.Name] == null)
1018 {
1019 arrayList.Add(value.SchemaAttribute);
1020 }
1021 }
1022 }
1023 if (_nsResolver.LookupPrefix(_nsXsi) != null)
1024 {
1026 }
1027 return arrayList.ToArray(typeof(XmlSchemaAttribute)) as XmlSchemaAttribute[];
1028 }
1029 if (_currentState == ValidatorState.Start && _partialValidationType != null && _partialValidationType is XmlSchemaAttribute xmlSchemaAttribute)
1030 {
1031 return new XmlSchemaAttribute[1] { xmlSchemaAttribute };
1032 }
1033 return Array.Empty<XmlSchemaAttribute>();
1034 }
void Add(TKey key, TValue value)
readonly IXmlNamespaceResolver _nsResolver
string? LookupPrefix(string namespaceName)

References System.Xml.Schema.XmlSchemaValidator._attPresence, System.Xml.Schema.XmlSchemaValidator._context, System.Xml.Schema.XmlSchemaValidator._currentState, System.Xml.Schema.XmlSchemaValidator._nsResolver, System.Xml.Schema.XmlSchemaValidator._nsXsi, System.Xml.Schema.XmlSchemaValidator._partialValidationType, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.XmlSchemaValidator.AddXsiAttributes(), System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.IXmlNamespaceResolver.LookupPrefix(), System.value, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.