//Before C# 8 var last = array[array.Length - 1]; //After C# 8 var last = array[^1];
int secondLastElement = _list[_list.Count - 2];