Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 1 more developer from Canada and 12 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


C#:what is () => ?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 nickme   Members   -  Reputation: 205

Like
0Likes
Like

Posted 06 December 2012 - 04:59 PM

hi

i am new to c#. i wonder what the following method call, especailly the () =>? what is it called and what does it do?

MessagePump.Run(form, () => { });

thanks

Sponsor:

#2 SiCrane   Moderators   -  Reputation: 10850

Like
2Likes
Like

Posted 06 December 2012 - 05:00 PM

That's a lambda expression.

#3 Memories are Better   Prime Members   -  Reputation: 769

Like
1Likes
Like

Posted 06 December 2012 - 05:29 PM

http://msdn.microsoft.com/en-us/library/system.action.aspx

It may be easier understanding Action delegate (and I guess Func later) if you arent use to lambda expressions

#4 DmitryNik   Members   -  Reputation: 199

Like
0Likes
Like

Posted 08 December 2012 - 09:43 AM

hi

i am new to c#. i wonder what the following method call, especailly the () =>? what is it called and what does it do?

MessagePump.Run(form, () => { });

thanks


My favorite feature in C# - lamda expression. This feature so many times helped me.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS