public static T FailableFunction <T>(int maxRetries, Func <T> function) { T t; Exception exception = Utility.FailableFunction <T>(maxRetries, function, out t); if (exception != null) { throw exception; } return(t); }
public static Exception FailableFunction <T>(Func <T> function, out T result) { return(Utility.FailableFunction <T>(5, function, out result)); }