What is Lambda Expression?

Answer Posted / sameer

A lambda expression is an anonymous function that can
contain expressions and statements
Syntax: delegate int del(int i);
del myDelegate = x => x * x;
int j = myDelegate(5); //j = 25

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dapper in c#?

542


What is super class in c#?

540


Can c# inherit multiple classes?

614


What is the difference between Static, Const and read only?

645


What are the types of constructors?

581






What are native functions?

544


What is immutable in C#?

674


What is a method c#?

576


What is as keyword in c#?

665


What is the difference between int and int in c#?

578


If casting fails what type of exception is thrown?

564


What's the difference between a static method and a non static method c#?

601


Explain the difference between arraylist and array and in c#?

590


What does void do in c#?

632


Explain the difference between “as” and “is” operators used in c#?

586