badcel / HidApi.Net

A modern cross platform C# binding for HIDAPI
https://badcel.github.io/HidApi.Net/
MIT License
36 stars 7 forks source link

Use library import attribute #58

Closed badcel closed 11 months ago

badcel commented 1 year ago

Use library import attribute instead of DllImport.

See https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.libraryimportattribute?view=net-8.0

Supports custom string marshaling.