get index list c# code example
Example 1: get enum by index c#
//Returns the enum value at the index
(EnumType)int;
//returns the string of the enum value at the index
(EnumType)int.ToString();
Example 2: get last element of array c#
string[] str = new string[] {"Java","HTML","jQuery"};
Console.WriteLine("Last element: "+str[str.Length - 1])
Example 3: c# get index of item in list
Array.IndexOf(arrName, searchingFor)