Table of Contents

Method RethrowIf

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

RethrowIf(Exception?, bool)

Rethrows the specified exception with the correct call stack information if the condition is true.

public static void RethrowIf(Exception? e, bool condition)

Parameters

e Exception

The exception to rethrow.

condition bool

The condition to check.