It is necessary to load different natives depending on the value of a certain function. But the name dll, which is specified in DllImport, const, i.e. must be known at compile time. How can this be circumvented?

  • LoadLibrary can use? - Vladimir Martyanov
  • I would like to manage P \ Invoke - Vladimir
  • one
  • @arrowd what is a wrapper on LoadLibrary ... - Vladimir Martyanov
  • @ Vladimir Martiyanov is more informative, will you agree? - arrowd September

0