예제 #1
0
        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);
        }
예제 #2
0
 public static Exception FailableFunction <T>(Func <T> function, out T result)
 {
     return(Utility.FailableFunction <T>(5, function, out result));
 }