Use the key name on the indexer of the dictionary, like so:
var dictionary = new Dictionary<string, string>(); dictionary.Add("CompanyId", "471413bf-a831-4e4a-bc3f-16492254d1b5"); string id = dictionary["CompanyId"];