Select ,Any and All operator in Linq C#

0
2



CODE:
————————————————————————————————
The Select operator always returns an IEnumerable collection which contains elements based on a transformation function. It is similar to the Select clause of SQL that produces a flat result set
————————————————————————————–
The All operator evalutes each elements in the given collection on a specified condition and returns True if all the elements satisfy a condition.
——————————————————————————————————-
Any checks whether any element satisfy given condition or not? In the following example, Any operation is used to check whether any student is teen ager or not.

Nguồn:https://wijstaanvooronzegrondrechten.org/

Xem Thêm Bài Viết Khác:https://wijstaanvooronzegrondrechten.org/cong-nghe

LEAVE A REPLY

Please enter your comment!
Please enter your name here