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); }
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); }
public void Add <T> (TypedKey key, T value) { this.dictionary.Add(key, value); }
public bool Contains(TypedKey key) { return(this.dictionary.ContainsKey(key)); }
public void Remove(TypedKey key) { this.dictionary.Remove(key); }