The following is an extract from my code:
public class AllIntegerIDs { public AllIntegerIDs() { m_MessageID = 0; m_Messa
In C# 8.0 you can get the last item with ^ operator full explanation
List<char> list = ...; var value = list[^1]; // Gets translated to var value = list[list.Count - 1];