c# get last array element
string[] items = GetAllItems();
string lastItem = items[items.Length - 1];
int arrayLength = array.Length;
Are there any code examples left?
New code examples in category C#
string[] items = GetAllItems();
string lastItem = items[items.Length - 1];
int arrayLength = array.Length;