Last active
August 29, 2015 14:02
-
-
Save rawman/321ba3040845215d9c75 to your computer and use it in GitHub Desktop.
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
public static void Invoke(Func<int> func) | |
{ | |
int result = 0; | |
try | |
{ | |
result = func(); | |
} | |
catch (Exception) | |
{ | |
//oblsuga bledow | |
} | |
if (result == 0) | |
{ | |
} | |
} | |
public static int ReturnInt() | |
{ | |
return 1; | |
} | |
public static void HandleErorrs() | |
{ | |
Invoke(ReturnInt); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment