soukoku / ntwain

A TWAIN lib for dotnet.
MIT License
117 stars 47 forks source link

Use LibraryImport instead of DllImport in v4 #36

Closed F1schk0pp closed 1 year ago

F1schk0pp commented 1 year ago

Hi @soukoku and thanks a lot for your effort into NTwain.

Beginning with .NET 7 there is a SourceGenerator for P/Invokes.

https://learn.microsoft.com/en-us/dotnet/standard/native-interop/pinvoke-source-generation

It might be a good thing to use this in v4.

What's your opinion about this?

soukoku commented 1 year ago

That is interesting. I'll see what I can do.