The following is an extract from my code:
public class AllIntegerIDs { public AllIntegerIDs() { m_MessageID = 0; m_Messa
Use the Count property. The last index will be Count - 1.
Count
Count - 1
for (int cnt3 = 0 ; cnt3 < integerList.Count; cnt3++)