Skip to content

Instantly share code, notes, and snippets.

@ehvattum
Last active February 10, 2016 15:01
Show Gist options
  • Save ehvattum/675ee28257c0a1700c3b to your computer and use it in GitHub Desktop.
Save ehvattum/675ee28257c0a1700c3b to your computer and use it in GitHub Desktop.
I.Got()
namespace JAY_Z
{
class Problem : Exception { }
class Bitch : Problem { }
static class I
{
static void Got()
{
for (int problems = 99; problems > 0; problems--)
{
try
{
throw new Problem();
}
catch (Problem aint) when (aint is Bitch)
{
// a_bitch ain't one.
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment