public bool TryGetValue <T> (TypedKey key, out T value)
        {
            object result;

            if (!this.dictionary.TryGetValue(key, out result))
            {
                return(false.Without(out value));
            }

            value = (T)result;
            return(true);
        }
Exemple #2
0
        public bool TryGetValue <T> (TypedKey key, out T value)
        {
            object result;

            if (!this.dictionary.TryGetValue(key, out result))
            {
                value = default(T);
                return(false);
            }

            value = (T)result;
            return(true);
        }
Exemple #3
0
 public void Add <T> (TypedKey key, T value)
 {
     this.dictionary.Add(key, value);
 }
Exemple #4
0
 public bool Contains(TypedKey key)
 {
     return(this.dictionary.ContainsKey(key));
 }
 public void Remove(TypedKey key)
 {
     this.dictionary.Remove(key);
 }