Exercise: Implement the Exactly Method

Write a new LINQ method, Exactly.

We'll cover the following

Write an Exactly method

Again, it’s your turn!

Let’s write an Exactly method to check if a collection has exactly a given number of elements.

To complete this exercise, follow the instructions in the comments and fill in the Exactly method on the EnumerableExtensions.cs file.

Get hands-on with 1400+ tech skills courses.