Method TryLoadLocalLibrary
TryLoadLocalLibrary<T>(string)
Attempts to load a local library and returns a handle to the loaded library.
public static nint TryLoadLocalLibrary<T>(string libraryName)
Parameters
libraryNamestringThe name of the library to load. This cannot be null or empty.
Returns
Type Parameters
TA type used to determine the context for locating the library path.
Remarks
The method resolves the library path based on the specified type
T and the provided library name.
Ensure that the library exists at the resolved path and is
accessible by the application.