Ejemplo n.º 1
0
 public NativeProcessorArchitecture(IServiceProvider services, string archID, string libPath, ILibraryLoader ldr, Dictionary <string, object> options)
     : base(services, archID, options)
 {
     loader = ldr;
     handle = ldr.LoadLibrary(libPath);
     prv    = (NativeProcessorArchitectureProvider)Marshal.PtrToStructure(ldr.GetSymbol(handle, SYM_NAME), typeof(NativeProcessorArchitectureProvider));
 }
Ejemplo n.º 2
0
 public NativeProcessorArchitecture(string archID, string libPath, ILibraryLoader ldr) : base(archID)
 {
     loader = ldr;
     handle = ldr.LoadLibrary(libPath);
     prv    = (NativeProcessorArchitectureProvider)Marshal.PtrToStructure(ldr.GetSymbol(handle, SYM_NAME), typeof(NativeProcessorArchitectureProvider));
 }