Differencies between FindAll() and Where()

The main difference between the LINQ functions Where() and FindAll() is the following:

Where() – Linq extension method, returns an instance of IEnumerable

FindAll() – function of a List type, it’s not Linq extension method. FindAll() returns a new List that contains the requested elements.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s