What are Quantifiers?

 Posted by Ddd on 2/1/2011 | Category: LINQ Interview questions | Views: 6354 | Points: 40
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.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Lokesh76 on: 4/27/2011 | Points: 10
Excellent One!

Login to post response