Created
July 22, 2020 09:15
-
-
Save EifelMono/49f25d1b59fc9b797f78114b8bdd5b39 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
using System; | |
namespace NiceExceptionName | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); | |
M(null); | |
} | |
static void M(Action a) | |
{ | |
try | |
{ | |
a(); | |
} | |
catch (Exception ಠ_ಠ) | |
{ | |
System.Console.WriteLine(ಠ_ಠ); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment