Created
December 5, 2014 12:42
-
-
Save snippe/2241b829342c10dae6a7 to your computer and use it in GitHub Desktop.
Statement Lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delegate string MyDelegate(string val); | |
static void Main(string[] args) | |
{ | |
MyDelegate del = n => { | |
string s = n + "!!!"; | |
return s; | |
}; | |
var delValue = del("Hello"); //Hello!!! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment