Sunday, 18 August 2013

Underscore Arrow (_ => ...) What Is This?

Underscore Arrow (_ => ...) What Is This?

Reading through C# in a Nutshell I noticed this bit of code that I've
never came across:
_uiSyncContent.Post(_ => txtMessage.Text += "Test");
What is that underscore followed by an arrow? I've seen Lambda expressions
written in a similar way but nothing with an underscore.

No comments:

Post a Comment