c# get the last item in a list

C#
var lastItem = integerList.Last();
Source

Also in C#: