Computer Science C#
Which of the following statement is TRUE? The lambda expression is nothing but an extension method. The lambda expression is a style of representing dynamic types. The lambda expression is nothing but static delegate method. The lambda expression is a shorter way of representing anonymous methods. Lambda and Linq extension methods are the same. s = > s.Age > 12 && s.Age
Expert Answer
Answer:
Question 9 (D) the Lambda Expression is a shorter way of representing anonymous methods.
For representing the anonymous methods with Lambda Expression you need to use some kind of special syntax. for example
delegate(Student s) { return s.Age => 12 && s.Age < 20; };
Question 10 (D) Lambda Expression
=> this is said to be Lambda operator which help in reducing the size of anonymous methods.