How do you retrieve the last element of an array in C#?
With C# 8:
int[] array = { 1, 3, 5 }; var lastItem = array[^1]; // 5