📝 What interface should your data structure implement to make the Where method work?



Implementing IEnumerable makes using foreach and where possible.



🔸 IEnumerable interface contains the System.Collections.Generic namespace.



🔸 IEnumerable interface is a generic interface which allows looping over generic or non-generic lists.



🔸 IEnumerable interface also works with linq query expression.



🔸 IEnumerable interface Returns an enumerator that iterates through the collection.