Created
November 1, 2016 11:49
-
-
Save zzandy/19169eac6e866f56092ed7a8eae71c99 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public event Action OnEvent; | |
... | |
OnEvent += () => Console.WriteLine("#1"); | |
OnEvent += () => Console.WriteLine("#2"); | |
OnEvent += () => { throw new Exception("#3"); }; | |
OnEvent += () => Console.WriteLine("#4"); | |
OnEvent += () => Console.WriteLine("#5"); | |
Console.WriteLine("CP1"); | |
OnEvent(); | |
Console.WriteLine("CP2"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment