Answers for "c# does list length and index"

C#
19

c sharp list length

// To get the length of a List use 'List<T>.Count'
List<string> stringList = new List<string>{"string1", "string2"};
stringList.Count
// Output:
// 2
Posted by: Guest on February-20-2020
1

c# list length

List<int> list = new List<int>() {7,5,1,4 };
Posted by: Guest on January-13-2021

C# Answers by Framework

Browse Popular Code Answers by Language