What is Lambda Expression?



What is Lambda Expression?..

Answer / 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

More C Sharp Interview Questions

Where CANNOT Destructors be implemented ?

3 Answers  


Is as keyword in c#?

0 Answers  


Can an interface inherit class/abstract class.

1 Answers   Synechron,


What is a generic method?

0 Answers  


What is a c# delegate?

0 Answers  






How u call destructor and dispose methode in c#.NET

1 Answers  


FOR EXAMPLE : CLASS Dotnet { } creating object: Dotnet dn=new Dotnet(); NOW THE QUESTION IS WHICH IS CALLED AS OBJECT ? EITHER dn OR new Dotnet() and CAN YOU PROVE YOUR ANSWER????? PLEASE REPLY...

2 Answers  


Is array ienumerable c#?

0 Answers  


What are class fields?

0 Answers  


What is append in c#?

0 Answers  


Are arrays value types or reference types?

0 Answers  


Why do we use static methods in c#?

0 Answers  


Categories