Table of Contents

Method InsideTryCatch

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

InsideTryCatch<T>(Func<T>)

Calls the specified function inside try catch block.

public static T InsideTryCatch<T>(Func<T> func)

Parameters

func Func<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

action Action

Action to call.

Remarks

If exception is raised inside action, exception is logged.