📌  相关文章
📜  从数组 c# 代码示例中取出最后 50 个

📅  最后修改于: 2022-03-11 14:49:08.340000             🧑  作者: Mango

代码示例3
//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;