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

◆ AddAttDef()

void System.Xml.Schema.SchemaElementDecl.AddAttDef ( SchemaAttDef attdef)
inlinepackage

Definition at line 228 of file SchemaElementDecl.cs.

229 {
230 _attdefs.Add(attdef.Name, attdef);
231 if (attdef.Presence == Use.Required || attdef.Presence == Use.RequiredFixed)
232 {
234 }
235 if (attdef.Presence == Use.Default || attdef.Presence == Use.Fixed)
236 {
237 if (_defaultAttdefs == null)
238 {
240 }
242 }
243 }
void Add(TKey key, TValue value)
readonly Dictionary< XmlQualifiedName, SchemaAttDef > _attdefs
List< IDtdDefaultAttributeInfo > _defaultAttdefs

References System.Xml.Schema.SchemaElementDecl._attdefs, System.Xml.Schema.SchemaElementDecl._defaultAttdefs, System.Xml.Schema.SchemaElementDecl._hasRequiredAttribute, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), and System.Xml.Dictionary.