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

◆ Add() [2/2]

virtual void System.Collections.SortedList.Add ( object key,
object? value )
inlinevirtualinherited

Implements System.Collections.IDictionary.

Definition at line 708 of file SortedList.cs.

709 {
710 if (key == null)
711 {
712 throw new ArgumentNullException("key", System.SR.ArgumentNull_Key);
713 }
714 int num = Array.BinarySearch(keys, 0, _size, key, comparer);
715 if (num >= 0)
716 {
718 }
719 Insert(~num, key, value);
720 }
virtual object GetKey(int index)
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string Argument_AddingDuplicate_OldAndNewKeys
Definition SR.cs:14
static string ArgumentNull_Key
Definition SR.cs:28
Definition SR.cs:7

References System.Collections.SortedList._size, System.SR.Argument_AddingDuplicate_OldAndNewKeys, System.SR.ArgumentNull_Key, System.Array.BinarySearch(), System.Collections.SortedList.comparer, System.SR.Format(), System.Collections.SortedList.GetKey(), System.Insert, System.key, System.Collections.SortedList.keys, and System.value.

Referenced by System.Collections.SortedList.SyncSortedList.Add(), System.Xml.Schema.XmlSchemaSet.AddSchemaToSet(), System.Xml.Schema.Preprocessor.BuildSchemaList(), System.Xml.Schema.XmlSchemaSet.CopyFromCompiledSet(), and System.Xml.Schema.XmlSchemaSet.Reprocess().