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

◆ Remove() [1/2]

void IList. System.Collections.CollectionBase.Remove ( object value)
inlineprivateinherited

Definition at line 130 of file CollectionBase.cs.

131 {
133 int num = InnerList.IndexOf(value);
134 if (num < 0)
135 {
137 }
138 OnRemove(num, value);
139 InnerList.RemoveAt(num);
140 try
141 {
143 }
144 catch
145 {
146 InnerList.Insert(num, value);
147 throw;
148 }
149 }
virtual void RemoveAt(int index)
virtual void Insert(int index, object? value)
virtual int IndexOf(object? value)
virtual void OnValidate(object value)
virtual void OnRemoveComplete(int index, object? value)
virtual void OnRemove(int index, object? value)
static string Arg_RemoveArgNotFound
Definition SR.cs:20
Definition SR.cs:7

References System.SR.Arg_RemoveArgNotFound, System.Collections.ArrayList.IndexOf(), System.Collections.CollectionBase.InnerList, System.Collections.ArrayList.Insert(), System.Collections.CollectionBase.OnRemove(), System.Collections.CollectionBase.OnRemoveComplete(), System.Collections.CollectionBase.OnValidate(), System.Collections.ArrayList.RemoveAt(), and System.value.