get last item of a list and set to a list in c# code example Example: c# get the last item in a list var lastItem = integerList.Last();