Method InsideTryCatch
InsideTryCatch<T>(Func<T>)
Calls the specified function inside try catch block.
public static T InsideTryCatch<T>(Func<T> func)
Parameters
funcFunc<T>
Returns
- T
Type Parameters
T
Remarks
If exception is raised inside func,
exception is logged and false is returned.
InsideTryCatch(Action?)
Calls the specified action inside try catch block.
public static void InsideTryCatch(Action? action)
Parameters
actionActionAction to call.
Remarks
If exception is raised inside action,
exception is logged.