last index for 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;