Created
May 3, 2012 16:21
-
-
Save tnngo2/2586945 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
using System; | |
namespace Theory_9 | |
{ | |
class MultipleAnonymousMethods | |
{ | |
private delegate void Display(); | |
static void Main(string[] args) | |
{ | |
Display objDisplay = delegate | |
{ | |
Console.WriteLine("Call delegate 1"); | |
}; | |
objDisplay += delegate | |
{ | |
Console.WriteLine("Call delegate 2"); | |
}; | |
objDisplay(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment