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

◆ Contains()

bool System.Collections.ListDictionaryInternal.Contains ( object key)
inline

Implements System.Collections.IDictionary.

Definition at line 338 of file ListDictionaryInternal.cs.

339 {
340 if (key == null)
341 {
342 throw new ArgumentNullException("key", SR.ArgumentNull_Key);
343 }
344 for (DictionaryNode next = head; next != null; next = next.next)
345 {
346 if (next.key.Equals(key))
347 {
348 return true;
349 }
350 }
351 return false;
352 }

References System.SR.ArgumentNull_Key, System.Collections.ListDictionaryInternal.head, System.key, and System.Collections.ListDictionaryInternal.DictionaryNode.next.