Diff<>(old, new, comparer, predicate, postProcessor) NewArray<>(size1, size2, size3, initialiser) RunMain(main, onUnhandledMain, onUnhandledThread) RunMain(main, onUnhandledMain, onUnhandledThread)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Static method: TResult OnException<TException, TResult>(Func<TResult>, Func<TException, TResult>)Declarationpublic static TResult OnException<TException, TResult>(
Func<TResult> func,
Func<TException, TResult> onException
) Summary
Evaluates the specified code and returns its result. If the code throws an exception of the specified type, runs
onException instead. Generic type parametersTException | This type parameter is not documented. | TResult | This type parameter is not documented. |
ParametersFunc<TResult> | func |
The code to be executed. | Func<TException, TResult> | onException |
The code to be executed in case of failure. |
|