src/AnvilPacker/Util/Collections/DictionarySlim.cs
/// <summary>
/// Looks for the specified key in the dictionary.
/// </summary>
/// <param name="key">Key to look for</param>
/// <returns>true if the key is present, otherwise false</returns>
Looks for the specified key in the dictionary.
Looks for the specified key in the dictionary .
public bool ContainsKey(TKey key)
        {
            if (key == null) ThrowHelper.ThrowKeyArgumentNullException();
            Entry[] entries = _entries;
            int bucketIndex = key.GetHashCode() & (_buckets.Length - 1);
            for (int i = _buckets[bucketIndex] - 1; (uint)i < (uint)entries.Length; i = entries[i].next) {
                if (key.Equals(entries[i].key))
                    return true;
            }
            return false;
        }
public bool ContainsKey ( TKey key ) { if ( key == null ) ThrowHelper . ThrowKeyArgumentNullException ( ) ; Entry [ ] entries = _entries ; int bucketIndex = key . GetHashCode ( ) & ( _buckets . Length - 1 ) ; for ( int i = _buckets [ bucketIndex ] - 1 ; ( uint ) i < ( uint ) entries . Length ; i = entries [ i ] . next ) { if ( key . Equals ( entries [ i ] . key ) ) return true ; } return false ; }
Looks for the specified key in the dictionary.
Looks for the specified key in the dictionary .
true if the key is present, otherwise false
true if the key is present otherwise false
key
TKey
Key to look for
Key to look for