private void LoadModules(IntPtr dllPtr, List <Type> modules) { foreach (var module in modules) { foreach (var info in module.GetMethods(BindingFlags.Public | BindingFlags.Static)) { if (DllLoader.GetProcAddress(dllPtr, info.Name).IsZero()) { throw new Exception($"Error on dll importing: {info.Module.Name} , method {info.Name} is not found."); } } } }