Web
Analytics
Quantifier Operators in linq C# - Tutorial

For Consultation : +91 9887575540

Stay Connected :

Quantifier query operators’ works on only single input sequence and return single Boolean value.

Contains 

The Contains query operator evaluates the elements in the input sequence and returns true if a specified value exists.

 

linq_contains

 

Any

Any operator works in two ways or we can say that there are two overloaded version of any operator.

  1. Any return true if any element is exists in list.
  2. If predicate or lambda expression is used then any operator return true when element is matched in list which satisfied the specified predicate condition.

 

Any_linq_csharp

 

All

The All query operator takes a predicate and evaluates the elements in the input sequence to determine if every element satisfies this predicate.

All_linq

 

SequenceEqual

The SequenceEqual query operator compares two sequences to see if they both have exactly the same elements in the same order.

 

samesequence_linq

Select your currency