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

◆ SoapAttributes() [2/2]

System.Xml.Serialization.SoapAttributes.SoapAttributes ( ICustomAttributeProvider provider)
inline

Definition at line 121 of file SoapAttributes.cs.

122 {
123 object[] customAttributes = provider.GetCustomAttributes(inherit: false);
124 for (int i = 0; i < customAttributes.Length; i++)
125 {
126 if (customAttributes[i] is SoapIgnoreAttribute || customAttributes[i] is ObsoleteAttribute)
127 {
128 _soapIgnore = true;
129 break;
130 }
131 if (customAttributes[i] is SoapElementAttribute)
132 {
133 _soapElement = (SoapElementAttribute)customAttributes[i];
134 }
135 else if (customAttributes[i] is SoapAttributeAttribute)
136 {
137 _soapAttribute = (SoapAttributeAttribute)customAttributes[i];
138 }
139 else if (customAttributes[i] is SoapTypeAttribute)
140 {
141 _soapType = (SoapTypeAttribute)customAttributes[i];
142 }
143 else if (customAttributes[i] is SoapEnumAttribute)
144 {
145 _soapEnum = (SoapEnumAttribute)customAttributes[i];
146 }
148 {
150 }
151 }
152 if (_soapIgnore)
153 {
154 _soapElement = null;
155 _soapAttribute = null;
156 _soapType = null;
157 _soapEnum = null;
158 _soapDefaultValue = null;
159 }
160 }

References System.Xml.Serialization.SoapAttributes._soapAttribute, System.Xml.Serialization.SoapAttributes._soapDefaultValue, System.Xml.Serialization.SoapAttributes._soapElement, System.Xml.Serialization.SoapAttributes._soapEnum, System.Xml.Serialization.SoapAttributes._soapIgnore, System.Xml.Serialization.SoapAttributes._soapType, and System.Xml.Dictionary.