Пример #1
0
        public bool Add(T item)
        {
            if (_wrapped.ContainsKey(item))
            {
                return(false);
            }

            _wrapped[item] = item;
            return(true);
        }
Пример #2
0
        public bool Contains(TKey key)
        {
            return(_cache.ContainsKey(key) || ProgressorWhere(Check).Any());

            bool Check(IGrouping <TKey, T> item)
            {
                return(Comparer.Equals(key, item.Key));
            }
        }