Lambda contains same number of parameters as delegate type - LINQ

Q.   Choose the correct one
- Published on 31 Aug 15

a. The lambda must contain the same number of parameters as the delegate type.
b. The lambda should not contain the same number of parameters as the delegate type.
c. The return value of the lambda (if any) must be explicitly convertible to the delegate's return type
d. None of the above

ANSWER: The lambda must contain the same number of parameters as the delegate type.
 
The lambda must contain the same number of parameters as the delegate type.
A delegate can refer only those methods that have same signature as delegate and lambda is nothing but anonymous function that can be used to create delegates.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)