SFML.Net icon indicating copy to clipboard operation
SFML.Net copied to clipboard

Consider using Native Library Loading

Open eXpl0it3r opened this issue 1 year ago • 1 comments

Using p/invoke with DllImportAttribute is a bit cumbersome in a cross-platform manner.

As such, it might make sense to use the NativeLibrary class instead.

References

  • https://learn.microsoft.com/en-us/dotnet/standard/native-interop/cross-platform
  • https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.nativelibrary?view=net-6.0
  • https://github.com/dotnet/runtime/issues/27267
  • https://github.com/dotnet/runtime/issues/4216

eXpl0it3r avatar May 02 '23 21:05 eXpl0it3r