Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is lamda expression?

Answers were Sorted based on User's Feedback



what is lamda expression?..

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

what is lamda expression?..

Answer / pushparaj pentakota

representing in-line function in the form of an expression
is called lamda expression.this lamda expression acts as an
input to aggrigate methods like avg(),sum() etc...

Is This Answer Correct ?    0 Yes 0 No

what is lamda expression?..

Answer / wasimhajwane

lambda expression :
Lambda expression is introduce in c# version 3.0.Its a method without having declaration,
A lambda expression is a anonymous function mostly used to create delegate in LINQ.
 Syntax:

parameter => expression or statement block.

simple program to understand lambda expreesion


class A
{
// we have to declare delegate here

public delegate int B(int a);

static void main()
{
B b=a=>a*a;
int res=b(5);
Console.WriteLine("result = ",res);
}
}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is difference between value and reference types in C#.NET

0 Answers   BirlaSoft,


Which is the best way for keeping the data in XML or SQL server..and why?

8 Answers   Infosys, Satyam,


What is javascriptserializer c#?

0 Answers  


Explain how to implement an object pool in c#.net

0 Answers  


Value Type and Reference Type Data type in C#?

0 Answers   HCL,


What is default value of enum c#?

0 Answers  


Can firstordefault return null?

0 Answers  


Can a loop recorder detect a heart attack?

0 Answers  


Can properties be static in c#?

0 Answers  


How many types of inheritance are there in c#?

0 Answers  


What is use of hashtable in c#?

0 Answers  


Can class inherit from struct c#?

0 Answers  


Categories