list c# get last element code example Example: how to copy last element in list c# var lastItem = integerList.Last();