C#:what is () => ?

Started by
2 comments, last by DmitryNik 11 years, 4 months ago
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
Advertisement
That's a lambda expression.
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

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.

This topic is closed to new replies.

Advertisement