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

◆ XDR_BuildElementType_Name()

static void System.Xml.Schema.XdrBuilder.XDR_BuildElementType_Name ( XdrBuilder builder,
object obj,
string prefix )
inlinestaticprivate

Definition at line 623 of file XdrBuilder.cs.

624 {
625 XmlQualifiedName xmlQualifiedName = (XmlQualifiedName)obj;
626 if (builder._SchemaInfo.ElementDecls.ContainsKey(xmlQualifiedName))
627 {
628 builder.SendValidationEvent(System.SR.Sch_DupElementDecl, XmlQualifiedName.ToString(xmlQualifiedName.Name, prefix));
629 }
632 builder._SchemaInfo.ElementDecls.Add(xmlQualifiedName, builder._ElementDef._ElementDecl);
633 if (builder._UndeclaredElements[xmlQualifiedName] != null)
634 {
635 builder._UndeclaredElements.Remove(xmlQualifiedName);
636 }
637 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
static string Sch_DupElementDecl
Definition SR.cs:404
Definition SR.cs:7

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Xml.Dictionary, System.obj, System.prefix, System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), System.SR.Sch_DupElementDecl, and System.Xml.XmlQualifiedName.ToString().