Answers for "count values where of a list 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 values where of a list c#"

C# Answers by Framework

Browse Popular Code Answers by Language