Skip to content

Instantly share code, notes, and snippets.

@rawman
Last active August 29, 2015 14:02
Show Gist options
  • Save rawman/321ba3040845215d9c75 to your computer and use it in GitHub Desktop.
Save rawman/321ba3040845215d9c75 to your computer and use it in GitHub Desktop.
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