get last value in list c# code example
Example 1: c# get last character of string
string str = "Hello World";
string substr = str.Substring(str.Length - 1);
Example 2: c# get the last item in a list
var lastItem = integerList.Last();
Example 3: f# get last element of list
Seq.last lst