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

◆ ValidateElement()

override object System.Xml.Schema.AllElementsContentValidator.ValidateElement ( XmlQualifiedName name,
ValidationState context,
out int errorCode )
inlinevirtual

Reimplemented from System.Xml.Schema.ContentValidator.

Definition at line 58 of file AllElementsContentValidator.cs.

59 {
60 object obj = _elements[name];
61 errorCode = 0;
62 if (obj == null)
63 {
65 return null;
66 }
67 int num = (int)obj;
68 if (context.AllElementsSet[num])
69 {
70 errorCode = -2;
71 return null;
72 }
73 if (context.CurrentState.AllElementsRequired == -1)
74 {
76 }
77 context.AllElementsSet.Set(num);
78 if (_isRequired[num])
79 {
80 context.CurrentState.AllElementsRequired++;
81 }
82 return _particles[num];
83 }

References System.Xml.Schema.AllElementsContentValidator._elements, System.Xml.Schema.AllElementsContentValidator._isRequired, System.Xml.Schema.AllElementsContentValidator._particles, System.Xml.Schema.StateUnion.AllElementsRequired, System.Xml.Schema.ValidationState.AllElementsSet, System.Xml.Schema.ValidationState.CurrentState, System.Xml.Dictionary, System.obj, and System.Xml.Schema.BitSet.Set().