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

◆ CheckDuplicateElement()

void System.Xml.Serialization.SerializableMapping.CheckDuplicateElement ( XmlSchemaElement element,
string elementNs )
inlinepackage

Definition at line 211 of file SerializableMapping.cs.

212 {
213 if (element == null || element.Parent == null || !(element.Parent is XmlSchema))
214 {
215 return;
216 }
218 if (Schema != null && Schema.TargetNamespace == elementNs)
219 {
220 XmlSchemas.Preprocess(Schema);
221 xmlSchemaObjectTable = Schema.Elements;
222 }
223 else
224 {
225 if (Schemas == null)
226 {
227 return;
228 }
230 }
232 {
233 if (value.Name == element.Name && value.QualifiedName.Namespace == elementNs)
234 {
235 if (Match(value, element))
236 {
237 break;
238 }
240 }
241 }
242 }
static string XmlSerializableRootDupName
Definition SR.cs:1790
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7
string? FullName
Definition Type.cs:47
XmlSchemaObjectTable GlobalElements
bool Match(XmlSchemaElement e1, XmlSchemaElement e2)

References System.Xml.Serialization.SerializableMapping._getSchemaMethod, System.Reflection.MemberInfo.DeclaringType, System.Xml.Dictionary, System.SR.Format(), System.Type.FullName, System.Xml.Schema.XmlSchemaSet.GlobalElements, System.Xml.Serialization.SerializableMapping.Match(), System.Xml.Schema.XmlSchemaObject.Parent, System.Xml.Serialization.XmlSchemas.Preprocess(), System.Xml.Serialization.SerializableMapping.Schemas, System.value, and System.SR.XmlSerializableRootDupName.