Jump to content

  • Log In with Google      Sign In   
  • Create Account

14 years ago on June 15th Gamedev.net was first launched! We want to thank all of you for being part of our community and hope the best years are ahead of us. Happy birthday Gamedev.net!

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: 194

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: 6768

Like
2Likes
Like

Posted 06 December 2012 - 05:00 PM

That's a lambda expression.

#3 Dynamo_Maestro   Members   -  Reputation: 545

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