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

What is reference c#?

739


What is method and function in c#?

702


What operators can be used to cast from one reference type to another without the risk of throwing an exception?

685


What is private and shared assembly?

748


What are cshtml files?

652


What is ilist c#?

671


what is a structure in c#

994


Can you drink alcohol with a loop recorder?

683


Explain About Virtual functions and their use.

758


Why do we use hashtable in c#?

658


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

1652


What do you understand by the terms datareader object and dataset object?

721


Can dictionary have duplicate keys c#?

662


What is the benefit of interface in c#?

681


Explain About CLS?

718