last index for array csharp
Code Example - last index for array csharp
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;