How to Fix C# Primary Constructor Warning: CS9107 "Parameter is captured into the state of the enclosing type"
Jul 18, 2024
In refactoring a C# project, the author encountered the CS9107 warning in Visual Studio 2022 while using Primary Constructors. This warning arises fro...