Table of Contents

Method Safe

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

Safe(ILogWriter?)

Ensures that a non-null ILogWriter instance is returned.

public static ILogWriter Safe(ILogWriter? writer = null)

Parameters

writer ILogWriter

The ILogWriter instance to validate. Can be null.

Returns

ILogWriter

The provided writer if it is not null; otherwise, the current default writer or a debug writer.