SyntaxFix
Write A Post
Hire A Developer
Questions
With C# 8:
int[] array = { 1, 3, 5 }; var lastItem = array[^1]; // 5