The following is an extract from my code:
public class AllIntegerIDs { public AllIntegerIDs() { m_MessageID = 0; m_Messa
To get the last item of a collection use LastOrDefault() and Last() extension methods
var lastItem = integerList.LastOrDefault();
OR
var lastItem = integerList.Last();
Remeber to add using System.Linq;, or this method won't be available.
using System.Linq;