Language Integrated Query (LINQ) Question:

Download Job Interview Questions and Answers PDF

What are Quantifiers?

LINQ Interview Question
LINQ Interview Question

Answer:

They are LINQ Extension methods which return a Boolean value
1) All
2) Any
3) Contains
4) SequenceEqual
example:
int[] arr={10,20,30};
var b=arr.All(a=>a>20);
-------------------------------------------
Output:
b will return False since all elements are not > 20.

Download LINQ Interview Questions And Answers PDF

Previous QuestionNext Question
What is Difference between XElement and XDocument?What is the benefit of using LINQ on Dataset?