📅  最后修改于: 2022-03-11 14:49:08.340000             🧑  作者: Mango
//get last element of array c#
string[] str = new string[] {"Java","HTML","jQuery"};
Console.WriteLine("Last element: "+str[str.Length - 1])
//c# get last array element
string[] items = GetAllItems();
string lastItem = items[items.Length - 1];
int arrayLength = array.Length;