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

◆ ValidateNameAttribute()

void System.Xml.Schema.SchemaCollectionPreprocessor.ValidateNameAttribute ( XmlSchemaObject xso)
inlineprivate

Definition at line 1638 of file SchemaCollectionPreprocessor.cs.

1639 {
1640 string nameAttribute = xso.NameAttribute;
1641 if (nameAttribute == null || nameAttribute.Length == 0)
1642 {
1644 }
1645 nameAttribute = XmlComplianceUtil.NonCDataNormalize(nameAttribute);
1646 int num = ValidateNames.ParseNCName(nameAttribute, 0);
1647 if (num != nameAttribute.Length)
1648 {
1649 string[] array = XmlException.BuildCharExceptionArgs(nameAttribute, num);
1650 string msg = System.SR.Format(System.SR.Xml_BadNameCharWithPos, array[0], array[1], num);
1652 }
1653 else
1654 {
1656 }
1657 }
void Add(TKey key, TValue value)
static string Sch_InvalidNameAttributeEx
Definition SR.cs:1138
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Xml_BadNameCharWithPos
Definition SR.cs:210
static string Sch_NullValue
Definition SR.cs:1156
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.array, System.Xml.XmlException.BuildCharExceptionArgs(), System.Xml.Dictionary, System.SR.Format(), System.Xml.Schema.XmlSchemaObject.NameAttribute, System.Xml.XmlComplianceUtil.NonCDataNormalize(), System.Xml.ValidateNames.ParseNCName(), System.SR.Sch_InvalidNameAttributeEx, System.SR.Sch_NullValue, System.Xml.Schema.BaseProcessor.SendValidationEvent(), and System.SR.Xml_BadNameCharWithPos.

Referenced by System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessAttribute(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessAttributeGroup(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessComplexType(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessElement(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessGroup(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessIdentityConstraint(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessLocalAttribute(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessLocalElement(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessNotation(), and System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessSimpleType().