c# get 2 last indexes in list code example Example: c# get the last item in a list var lastItem = integerList.Last();