microsoft / CsWin32

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.
MIT License
1.99k stars 84 forks source link

Leverage .NET 8/C# 12 inline arrays #1086

Open AArnott opened 7 months ago

AArnott commented 7 months ago

When emitting into a C# 12 compilation that targets .NET 8 (this runtime version is required), we should use the new inline array support instead of emitting our own fixed-based arrays.