Tutorials
Resources
Forum
Communities
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Deepika Harida...
(321)
SweetGhost
(267)
David Billa
(183)
Last 7 Days
Arun Jacob
(1406)
amarababu nara...
(1301)
Deepika Harida...
(1194)
more...
New Feature:
Community Sites
:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
Lambda expression
Posted Date: 04 Jun 2008 Resource Type:
Definitions
Category:
General
Posted By:
shakti singh tanwar
Member Level:
Diamond
Rating:
Points
: 8
Lambda expression is a new addition to already rich c# language# 2.0 introduced anonymous methods and lambda expressions are an enhancement to them.
A lambda expression is an anonymous function that can contain expressions and statements, and can be used to create delegates or expression tree types.
All lambda expressions use the lambda operator =>, which is read as "goes to". The left side of the lambda operator specifies the input parameters (if any) and the right side holds the expression or statement block. The lambda expression x => x * x is read "x goes to x times x." This expression can be assigned to a delegate type as follows:
delegate int del(int i);
del myDelegate = x => x * x;
int j = myDelegate(5); //j = 25
To create an expression tree type:
using System.Linq.Expressions;
// ...
Expression
= x => x * x;
The => operator has the same precedence as assignment (=) and is right-associative.
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
Nullable Types
Previous Resource:
Aspnet_regsql.exe
Return to Discussion Resource Index
Post New Resource
Category:
General
Post resources and
earn money
!
Related Resources
What are EBooks?
What is the function of a data adapter?
PrimaryKey
Which programming languages are supported by the .NET Framework?
SSML
dotNet Slackers
BizTalk Adaptors
Web Design
audio conferencing services
Contact Us
Privacy Policy
Terms Of Use