Example #1
0
        public void Process(Process <KeyValuePair <object, VALUE_TYPE> > process)
        {
            lock (dictionary_lock)
            {
                dictionary.Reduce(delegate(KeyValuePair <object, VALUE_TYPE> pair) {
                    if (WeakKey <OBJECT_TYPE> .DereferenceIsNull(pair.Key) == false)
                    {
                        process(pair);

                        return(true);
                    }

                    return(false);
                });
            }
        }
Example #2
0
 public new bool Equals(object x, object y)
 {
     return(WeakKey <T> .DereferenceEquals(x, y));
 }
Example #3
0
 public int GetHashCode(object obj)
 {
     return(WeakKey <T> .DereferenceHashCode(obj));
 }