Table of Contents

Method HandleThreadExceptions

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

HandleThreadExceptions<T>(Func<T>)

Calls func inside try-catch block if specified by the exception handling settings FastThreadExceptions and GetUnhandledExceptionMode().

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

Parameters

func Func<T>

Function to call.

Returns

T

Type Parameters

T

Type of the function result.

HandleThreadExceptions(Action)

Calls action inside try-catch block if specified by the exception handling settings FastThreadExceptions and GetUnhandledExceptionMode().

public static void HandleThreadExceptions(Action action)

Parameters

action Action

Action to call.