get last value of dictionary c# code example Example: write last element of dictionary c# var last = dictionary.Values.Last();