get the length of a list in c sharp code example
Example 1: get list length c#
public List<int> values;
public int listLength;
listLength = values.Count;
Example 2: c# how to get length of string list
list.Length // list represents the name of your list