MediaInfo.DotNetWrapper icon indicating copy to clipboard operation
MediaInfo.DotNetWrapper copied to clipboard

Use source generation for dll imports

Open SbiCA opened this issue 3 years ago • 3 comments

Hi @StefH ,

First of all thanks for you work and this library 🎉

Have you thought on using the source generation introduced in .NET 7 and maybe adding some benchmarks?

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

Cheers Simon

SbiCA avatar Oct 31 '22 04:10 SbiCA

@SbiCA This looks interesting...

If you have time, you can also start on a PR for this?

StefH avatar Oct 31 '22 10:10 StefH

@SbiCA Do you have time to start a PR or provide some more example?

StefH avatar Nov 26 '22 08:11 StefH

@StefH sorry for the delay I'm afraid not yet and I don't think I have time this year to help you on that. There are a few good talks on source generation e.g. https://www.youtube.com/watch?v=azJm_Y2nbAI . I m also happy to jump on a slack/hangouts call and discuss possible approaches if you have some time available but from my end it will be hard to contribute code the next 3 months

SbiCA avatar Dec 05 '22 06:12 SbiCA