using System.Collections.Generic; Dictionary<TKey,TValue> dictionary = new Dictionary<TKey,TValue>(); dictionary.Add(TKey, TValue); //Returms a booleen dictionary.TryGetValue(TKey, out TValue tValue);