System.Linq
namespace to make the LINQ extension methods available and reference a LINQ provider assembly for the type of data that you want to work with.Select
method allows projection (selection) of properties.Where
method allows filtering by supplying a delegate (or lambda expression) that returns a Boolean to indicate whether the value should be included in the results.Max
, Min
, Count
, Average
, Sum
, and Aggregate
.SelectMany
extension methods?SelectMany
checks that the items you have selected are themselves IEnumerable<T>
and then breaks them down into smaller parts. For example, if the type you select is a string value (which is IEnumerable<char>
), SelectMany
will break each string value returned into their individual char
values.18.191.202.240