write last element of dictionary csharp

Code Example - write last element of dictionary csharp

                
                        var last = dictionary.Values.Last();