get last 2 index of array c# code example
Example: last index for array c#
string[] items = GetAllItems();
string lastItem = items[items.Length - 1];
int arrayLength = array.Length;
string[] items = GetAllItems();
string lastItem = items[items.Length - 1];
int arrayLength = array.Length;