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