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

◆ Insert()

void System.Xml.Schema.XmlSchemaObjectTable.Insert ( XmlQualifiedName name,
XmlSchemaObject value )
inlinepackage

Definition at line 262 of file XmlSchemaObjectTable.cs.

263 {
264 XmlSchemaObject value2 = null;
265 if (_table.TryGetValue(name, out value2))
266 {
267 _table[name] = value;
269 _entries[index] = new XmlSchemaObjectEntry(name, value);
270 }
271 else
272 {
273 Add(name, value);
274 }
275 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
readonly List< XmlSchemaObjectEntry > _entries
readonly Dictionary< XmlQualifiedName, XmlSchemaObject > _table

References System.Xml.Schema.XmlSchemaObjectTable._entries, System.Xml.Schema.XmlSchemaObjectTable._table, System.Add, System.Xml.Schema.XmlSchemaObjectTable.FindIndexByValue(), System.index, System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), and System.value.

Referenced by System.Xml.Schema.BaseProcessor.AddToTable(), System.Xml.Schema.XmlSchemaSet.AddToTable(), System.Xml.Schema.Compiler.Compile(), System.Xml.Schema.SchemaCollectionCompiler.Compile(), System.Xml.Schema.BaseProcessor.IsValidAttributeGroupRedefine(), System.Xml.Schema.BaseProcessor.IsValidGroupRedefine(), System.Xml.Schema.BaseProcessor.IsValidTypeRedefine(), and System.Xml.Schema.Preprocessor.PreprocessRedefine().