Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Load() [1/2]

static IntPtr System.Runtime.InteropServices.NativeLibrary.Load ( string libraryName,
Assembly assembly,
DllImportSearchPath? searchPath )
inlinestatic

Definition at line 48 of file NativeLibrary.cs.

49 {
50 if (libraryName == null)
51 {
52 throw new ArgumentNullException("libraryName");
53 }
54 if (assembly == null)
55 {
56 throw new ArgumentNullException("assembly");
57 }
58 if (!assembly.IsRuntimeImplemented())
59 {
60 throw new ArgumentException(SR.Argument_MustBeRuntimeAssembly);
61 }
62 return LoadLibraryByName(libraryName, assembly, searchPath, throwOnError: true);
63 }
static IntPtr LoadLibraryByName(string libraryName, Assembly assembly, DllImportSearchPath? searchPath, bool throwOnError)

References System.SR.Argument_MustBeRuntimeAssembly, System.Reflection.Assembly.IsRuntimeImplemented(), and System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName().