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

◆ Match()

bool System.Xml.Serialization.AccessorMapping.Match ( AccessorMapping mapping)
inlinepackageinherited

Definition at line 249 of file AccessorMapping.cs.

250 {
251 if (Elements != null && Elements.Length != 0)
252 {
253 if (!ElementsMatch(Elements, mapping.Elements))
254 {
255 return false;
256 }
257 if (Text == null)
258 {
259 return mapping.Text == null;
260 }
261 }
262 if (Attribute != null)
263 {
264 if (mapping.Attribute == null)
265 {
266 return false;
267 }
268 if (Attribute.Name == mapping.Attribute.Name && Attribute.Namespace == mapping.Attribute.Namespace)
269 {
270 return Attribute.Form == mapping.Attribute.Form;
271 }
272 return false;
273 }
274 if (Text != null)
275 {
276 return mapping.Text != null;
277 }
278 return mapping.Accessor == null;
279 }
static bool ElementsMatch(ElementAccessor[] a, ElementAccessor[] b)

References System.Xml.Dictionary, and System.Xml.Serialization.AccessorMapping.ElementsMatch().