Ge Xiaohe
✅ How to resolve CS9017 when trying passing captured arguments by primary constructor to base class?
Just tag the related issue here. This report exists.
https://github.com/SonarSource/sonar-dotnet/issues/7624
18 replies
✅ How to resolve CS9017 when trying passing captured arguments by primary constructor to base class?
Thanks, I understand that passing to base class and referencing a parameter will result in double storage. I need to change one of them.
1. Not referencing
appConfig
in derived class:
2. Or not passing appConfig
to base type.
I am not sure if I do not pass appConfig
to base type, how I can access appConfig
in base type.18 replies
✅ How to resolve CS9017 when trying passing captured arguments by primary constructor to base class?
I just tried to create a minimal reproducible example.
I deleted all business-related fields, properties and methods.
Now, ignoring Warning CS9113, the warning CS9107 mentioned above happens to
appConfig
.18 replies