Exemplo n.º 1
0
 /// <summary>
 /// Constructs a new NativeLibrary using the specified library loader.
 /// </summary>
 /// <param name="names">An ordered list of names to attempt to load.</param>
 /// <param name="loader">The loader used to open and close the library, and to load function pointers.</param>
 /// <param name="pathResolver">The path resolver, used to identify possible load targets for the library.</param>
 public NativeLibrary(string[] names, LibraryLoader loader, PathResolver pathResolver)
 {
     _loader = loader;
     Handle  = _loader.LoadNativeLibrary(names, pathResolver);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs a new NativeLibrary using the platform's default library loader.
 /// </summary>
 /// <param name="name">The name of the library to load.</param>
 public NativeLibrary(string name)
 {
     _loader = s_platformDefaultLoader;
     Handle  = _loader.LoadNativeLibrary(name);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructs a new NativeLibrary using the specified library loader.
 /// </summary>
 /// <param name="names">An ordered list of names to attempt to load.</param>
 /// <param name="loader">The loader used to open and close the library, and to load function pointers.</param>
 public NativeLibrary(string[] names, LibraryLoader loader) : this(names, loader, PathResolver.Default)
 {
 }