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

◆ KeyEquals() [2/2]

virtual bool System.Collections.Hashtable.KeyEquals ( object? item,
object key )
inlineprotectedvirtualinherited

Definition at line 918 of file Hashtable.cs.

919 {
920 if (_buckets == item)
921 {
922 return false;
923 }
924 if (item == key)
925 {
926 return true;
927 }
928 if (_keycomparer != null)
929 {
930 return _keycomparer.Equals(item, key);
931 }
932 return item?.Equals(key) ?? false;
933 }
IEqualityComparer _keycomparer
Definition Hashtable.cs:413
new bool Equals(object? x, object? y)

References System.Collections.Hashtable._buckets, System.Collections.Hashtable._keycomparer, System.Collections.IEqualityComparer.Equals(), System.item, and System.key.

Referenced by System.Collections.Hashtable.ContainsKey(), System.Collections.Hashtable.Insert(), and System.Collections.Hashtable.Remove().