Table of Contents

Method GetLocationSafe

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

GetLocationSafe(Assembly?)

Safely retrieves the location of the specified assembly. This method catches all exception raised by Location.

public static string? GetLocationSafe(Assembly? assembly)

Parameters

assembly Assembly

The assembly whose location is to be retrieved.

Returns

string

The location of the assembly as a string, or null if the location cannot be determined.