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

◆ this[int index]

object? IList. System.Collections.CollectionBase.this[int index]
getsetprivateinherited

Implements System.Collections.IList.

Definition at line 33 of file CollectionBase.cs.

34 {
35 get
36 {
37 if (index < 0 || index >= Count)
38 {
39 throw new ArgumentOutOfRangeException("index", System.SR.ArgumentOutOfRange_Index);
40 }
41 return InnerList[index];
42 }
43 set
44 {
45 if (index < 0 || index >= Count)
46 {
47 throw new ArgumentOutOfRangeException("index", System.SR.ArgumentOutOfRange_Index);
48 }
50 object obj = InnerList[index];
53 try
54 {
56 }
57 catch
58 {
60 throw;
61 }
62 }
63 }
virtual void OnValidate(object value)
virtual void OnSet(int index, object? oldValue, object? newValue)
virtual void OnSetComplete(int index, object? oldValue, object? newValue)
static string ArgumentOutOfRange_Index
Definition SR.cs:30
Definition SR.cs:7