Answers for "count how many in list of c#"

C#
2

c# count specific element in list

// lstSlots = new List<int> { 1, 1, 0 }
lstSlots.Count(n => n == 1)	// returns 2
Posted by: Guest on September-08-2021

Code answers related to "count how many in list of c#"

C# Answers by Framework

Browse Popular Code Answers by Language