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

◆ this[object key]

object? IDictionary. System.Collections.DictionaryBase.this[object key]
getsetprivate

Implements System.Collections.IDictionary.

Definition at line 45 of file DictionaryBase.cs.

46 {
47 get
48 {
49 object obj = InnerHashtable[key];
50 OnGet(key, obj);
51 return obj;
52 }
53 set
54 {
56 bool flag = true;
57 object obj = InnerHashtable[key];
58 if (obj == null)
59 {
61 }
62 OnSet(key, obj, value);
64 try
65 {
67 }
68 catch
69 {
70 if (flag)
71 {
73 }
74 else
75 {
77 }
78 throw;
79 }
80 }
81 }
virtual void OnSetComplete(object key, object? oldValue, object? newValue)
virtual void OnSet(object key, object? oldValue, object? newValue)
virtual ? object OnGet(object key, object? currentValue)
virtual void OnValidate(object key, object? value)
virtual bool Contains(object key)
Definition Hashtable.cs:719
virtual void Remove(object key)