Exemple #1
0
        public bool TryGetValue(TKey key, out TValue value)
        {
            if (linkedDictionary.TryGetValue(key, out value))
            {
                linkedDictionary.Remove(key);
                linkedDictionary.AddFirst(key, value);
                return(true);
            }

            return(false);
        }
Exemple #2
0
 public bool TryGetValue(TKey key, out TValue value)
 {
     return(linkedDictionary.TryGetValue(key, out value));
 }