Dictionary<string, string> dict = new Dictionary<string, string>(); dict.Add("UserID", "test"); string userIDFromDictionaryByKey = dict["UserID"];