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

◆ CheckMixedValueConstraint()

object System.Xml.Schema.XmlSchemaValidator.CheckMixedValueConstraint ( string elementValue)
inlinepackage

Definition at line 1723 of file XmlSchemaValidator.cs.

1724 {
1725 SchemaElementDecl elementDecl = _context.ElementDecl;
1726 if (_context.IsNill)
1727 {
1728 return null;
1729 }
1730 if (elementValue.Length == 0)
1731 {
1732 _context.IsDefault = true;
1733 return elementDecl.DefaultValueTyped;
1734 }
1735 SchemaDeclBase schemaDeclBase = elementDecl;
1736 if (schemaDeclBase.Presence == SchemaDeclBase.Use.Fixed && !elementValue.Equals(elementDecl.DefaultValueRaw))
1737 {
1739 }
1740 return elementValue;
1741 }
static string Sch_FixedElementValue
Definition SR.cs:494
Definition SR.cs:7

References System.Xml.Schema.XmlSchemaValidator._context, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.Schema.ValidationState.IsNill, System.SR.Sch_FixedElementValue, and System.Xml.Schema.XmlSchemaValidator.SendValidationEvent().

Referenced by System.Xml.Schema.XmlSchemaValidator.InternalValidateEndElement().