Created
December 5, 2014 12:14
-
-
Save snippe/880f9245e30e77a55b3a to your computer and use it in GitHub Desktop.
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 int MultiplyDelegate(int x); | |
static void Main(string[] args) | |
{ | |
MultiplyDelegate multi = x => x * x; | |
int result = multi(4); //16 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment