Skip to main content
GameDev.net gamedev.net
🔒 Locked

C#:what is () => ?

Started by nickme Dec 6, 2012 at 10:59 PM 2 replies 1.5k views
Original Post
nickme
nickme
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
Dynamo_Maestro
Dynamo_Maestro
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
DmitryNik
DmitryNik

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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.