Runtime Services.Try Load Library Method
Attempts to load an assembly.
Definition
Namespace: Numerics.NET.Providers.InteropServices
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
true if the assembly was loaded successfully; otherwise false.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public static bool TryLoadLibrary(
string filename,
string? libraryPath,
out Exception?? lastException
)
Parameters
- filename String
- The name of the assembly.
- libraryPath String
- The base path of the assembly. May be null.
- lastException Exception
- On return, the last exception thrown during the search.
Return Value
Booleantrue if the assembly was loaded successfully; otherwise false.