Exemplo n.º 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);
                });
            }
        }
Exemplo n.º 2
0
 public new bool Equals(object x, object y)
 {
     return(WeakKey <T> .DereferenceEquals(x, y));
 }
Exemplo n.º 3
0
 public int GetHashCode(object obj)
 {
     return(WeakKey <T> .DereferenceHashCode(obj));
 }