Created
October 26, 2010 02:25
-
-
Save mletterle/646212 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
namespace Test | |
{ | |
class Test | |
{ | |
public delegate void MyDelegate(); | |
public void TestMethod() | |
{ | |
TestMethod2( delegate() | |
{ | |
goto outLabel; | |
outLabel: | |
System.Environment.Exit(0); | |
}); | |
} | |
public static void TestMethod2(MyDelegate md) | |
{ | |
md.Invoke(); | |
} | |
} | |
} |
bcr
commented
Oct 26, 2010
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment