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
Are c# destructors the same as c++ destructors?
Is string mutable in c#?
What is the meaning of MSIL?
What is the difference between an implicit conversion and an explicit conversion?
How you will create satellite assemblies?
What is polymorphism and its types in c#?
Explain when should you call the garbage collector in .net?
What is the use of flag in c#?
Why does my windows application pop up a console window every time I run it?
Define assert() method? How does it work?
What are strong name assemblies?
What is call back method?
Can you pass value types by reference to a method?
What are fields in c#?
What are the differences between a class and a struct?