what is lamda expression?

Answer Posted / andro

Lambda expression is an inline delegate introduced with C #
3.0 language. It’s a concise way to represent an anonymous
method. It provides a syntax to create and invoke
functions. Although Lambda expressions are simpler to use
than anonymous methods, they do slightly differ on how they
are implemented. Both anonymous methods and Lambda
expressions allow you define the method implementation
inline, however, an anonymous method explicitly requires
you to define the parameter types and the return type for a
method. Lambda expression uses the type inference feature
of C# 3.0 which allows the compiler to infer the type of
the variable based on the context.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are c# destructors the same as c++ destructors?

554


Is string mutable in c#?

477


What is the meaning of MSIL?

654


What is the difference between an implicit conversion and an explicit conversion?

488


How you will create satellite assemblies?

483






What is polymorphism and its types in c#?

453


Explain when should you call the garbage collector in .net?

475


What is the use of flag in c#?

482


Why does my windows application pop up a console window every time I run it?

516


Define assert() method? How does it work?

621


What are strong name assemblies?

549


What is call back method?

509


Can you pass value types by reference to a method?

516


What are fields in c#?

495


What are the differences between a class and a struct?

469