Jump to content

View more

Image of the Day

Adding some finishing touches...
Follow us for more
#screenshotsaturday #indiedev... by #MakeGoodGames https://t.co/Otbwywbm3a
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

C#:what is () => ?

4: Adsense

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   

253
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

#2 SiCrane   Moderators   

11812
Like
2Likes
Like

Posted 06 December 2012 - 05:00 PM

That's a lambda expression.

#3 Memories are Better   Prime Members   

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   

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.