Qus:    How can I select count() in a LINQ expression?
Feb 19, 2021 12:55 1 Answers Views: 51 FRAUSKY
Prev Next
Answers (1)
PARTH Feb 20, 2021 03:10
Answer:   Please refer to below example -

IEnumerable items = new List { 8, 3, 2 };
int count = (from x in items where x < 5 select x).Count();

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect