You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This changes the parameter **libraryPath** into **executableName**
Reasoning:
The path is automatically handled by the abstraction of the API itself. The user is **not** supposed to provide a path:
That would simply be not sensical, considering macOS, Linux, etc, all have different paths to begin with.
The argument could never be multiple paths to all of them, and it's the executable name (that has to be on the PATH, obviously) that is our concern.
I hope this is fine this way, and I also corrected two small typos.
Thanks
<paramname="libraryName">The name of the native library to be loaded.</param>
199
+
<paramname="executableName">The name of the native library to be loaded.</param>
200
200
<paramname="assembly">The assembly loading the native library.</param>
201
201
<paramname="searchPath">The search path.</param>
202
202
<summary>Provides a high-level API for loading a native library.</summary>
@@ -293,7 +293,7 @@ Only one resolver can be registered per assembly. Trying to register a second re
293
293
<Docs>
294
294
<paramname="handle">The native library OS handle.</param>
295
295
<paramname="name">The name of the exported symbol.</param>
296
-
<paramname="address">When the method returns, contains the symbol address, if it exists.</param>
296
+
<paramname="address">When the method returns, it contains the symbol address, if it exists.</param>
297
297
<summary>Gets the address of an exported symbol and returns a value that indicates whether the method call succeeded.</summary>
298
298
<returns>
299
299
<seelangword="true" /> if the address of the exported symbol was found successfully; otherwise, <seelangword="false" />.</returns>
@@ -302,7 +302,7 @@ Only one resolver can be registered per assembly. Trying to register a second re
302
302
303
303
This is a simple wrapper around OS calls and does not perform any name mangling.
304
304
305
-
Calling this method with a invalid `handle` parameter other than <xref:System.IntPtr.Zero?displayProperty=nameWithType> is not supported and will result in undefined behaviour.
305
+
Calling this method with an invalid `handle` parameter other than <xref:System.IntPtr.Zero?displayProperty=nameWithType> is not supported and will result in undefined behaviour.
306
306
307
307
]]></format>
308
308
</remarks>
@@ -311,12 +311,12 @@ Calling this method with a invalid `handle` parameter other than <xref:System.In
311
311
</Docs>
312
312
</Member>
313
313
<MemberMemberName="TryLoad">
314
-
<MemberSignatureLanguage="C#"Value="public static bool TryLoad (string libraryPath, out IntPtr handle);" />
0 commit comments