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

◆ CheckTopLevelAttributes()

void System.Xml.Serialization.XmlReflectionImporter.CheckTopLevelAttributes ( XmlAttributes a,
string accessorName )
inlineprivate

Definition at line 2066 of file XmlReflectionImporter.cs.

2067 {
2068 XmlAttributeFlags xmlFlags = a.XmlFlags;
2069 if ((xmlFlags & (XmlAttributeFlags)544) != 0)
2070 {
2072 }
2073 if ((xmlFlags & (XmlAttributeFlags)1284) != 0)
2074 {
2076 }
2077 if (a.XmlElements != null && a.XmlElements.Count > 0)
2078 {
2079 if (a.XmlElements.Count > 1)
2080 {
2082 }
2083 XmlElementAttribute xmlElementAttribute = a.XmlElements[0];
2084 if (xmlElementAttribute.Namespace != null)
2085 {
2087 }
2088 if (xmlElementAttribute.IsNullable)
2089 {
2091 }
2092 }
2093 if (a.XmlArray != null && a.XmlArray.Namespace != null)
2094 {
2095 throw new InvalidOperationException(System.SR.Format(System.SR.XmlRpcLitElementNamespace, "Namespace", a.XmlArray.Namespace));
2096 }
2097 }
static string XmlRpcLitElementNullable
Definition SR.cs:1730
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string XmlRpcLitAttributes
Definition SR.cs:1738
static string XmlRpcLitAttributeAttributes
Definition SR.cs:1736
static string XmlRpcLitElements
Definition SR.cs:1732
static string XmlRpcLitElementNamespace
Definition SR.cs:1728
Definition SR.cs:7

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.SR.Format(), System.SR.XmlRpcLitAttributeAttributes, System.SR.XmlRpcLitAttributes, System.SR.XmlRpcLitElementNamespace, System.SR.XmlRpcLitElementNullable, and System.SR.XmlRpcLitElements.

Referenced by System.Xml.Serialization.XmlReflectionImporter.ImportAccessorMapping().