Method Select
Select() Method
Select() takes each source element, transforms it, and returns a sequence of the transformed values as requested by the condition
Let’s see a query to show only the student cities
We can also select a property of each element!
SelectMany()
The SelectMany() method is used to "flatten" a sequence in which each of the elements of the sequence is a separate, subordinate sequence.
We can turn a two-dimensional array into a single sequence of values, as shown in this example
Last updated