Created
January 9, 2012 20:00
-
-
Save acazsouza/1584641 to your computer and use it in GitHub Desktop.
How to crash VS 2010 in 20 lines of code
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
namespace Crash | |
{ | |
public class Foo | |
{ | |
public static void Method(object o) | |
{ | |
} | |
} | |
public class Bar | |
{ | |
public Foo Foo { get; set; } | |
public static void Method(dynamic d) | |
{ | |
Foo.Method(d); //This crashes VS instantly! | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment