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

◆ ContainsValue()

virtual bool System.Collections.Hashtable.ContainsValue ( object? value)
inlinevirtualinherited

Definition at line 754 of file Hashtable.cs.

755 {
756 if (value == null)
757 {
758 int num = _buckets.Length;
759 while (--num >= 0)
760 {
761 if (_buckets[num].key != null && _buckets[num].key != _buckets && _buckets[num].val == null)
762 {
763 return true;
764 }
765 }
766 }
767 else
768 {
769 int num2 = _buckets.Length;
770 while (--num2 >= 0)
771 {
772 object val = _buckets[num2].val;
773 if (val != null && val.Equals(value))
774 {
775 return true;
776 }
777 }
778 }
779 return false;
780 }

References System.Collections.Hashtable._buckets, System.Runtime.Serialization.Dictionary, System.key, System.Collections.Hashtable.bucket.val, and System.value.

Referenced by System.Collections.Hashtable.SyncHashtable.ContainsValue(), and System.Collections.Specialized.StringDictionary.ContainsValue().