how to get the last index of a list in int data type c# code example Example: c# get the last item in a list var lastItem = integerList.Last();