c# get the length of a list code example
Example 1: get list length c#
public List<int> values;
public int listLength;
listLength = values.Count;
Example 2: c# list length
List<int> list = new List<int>() {7,5,1,4 };
public List<int> values;
public int listLength;
listLength = values.Count;
List<int> list = new List<int>() {7,5,1,4 };