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

◆ TryGetKey()

bool System.Collections.Immutable.ImmutableDictionary< TKey, TValue >.HashBucket.TryGetKey ( TKey equalKey,
Comparers comparers,
out TKey actualKey )
inlinepackage

Definition at line 858 of file ImmutableDictionary.cs.

859 {
860 if (IsEmpty)
861 {
863 return false;
864 }
865 if (comparers.KeyComparer.Equals(_firstValue.Key, equalKey))
866 {
868 return true;
869 }
871 int num = _additionalElements.IndexOf(item, comparers.KeyOnlyComparer);
872 if (num < 0)
873 {
875 return false;
876 }
878 return true;
879 }
int IndexOf(T item, int index, int count, IEqualityComparer< T >? equalityComparer)
readonly ImmutableList< KeyValuePair< TKey, TValue > >.Node _additionalElements

References System.Collections.Immutable.ImmutableDictionary< TKey, TValue >.HashBucket._additionalElements, System.Collections.Immutable.ImmutableDictionary< TKey, TValue >.HashBucket._firstValue, System.Collections.Immutable.ImmutableList< T >.IndexOf(), System.Collections.Immutable.ImmutableDictionary< TKey, TValue >.HashBucket.IsEmpty, System.item, and System.Collections.Immutable.ImmutableList< T >.ItemRef().