dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.28k stars 954 forks source link

Fix IDE0036 warnings with newer SDK #11571

Closed akoeplinger closed 1 week ago

akoeplinger commented 1 week ago

Fixes https://github.com/dotnet/winforms/issues/11493

Microsoft Reviewers: Open in CodeFlow
codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 74.47355%. Comparing base (2bab851) to head (4eb3319).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #11571 +/- ## =================================================== - Coverage 74.47450% 74.47355% -0.00096% =================================================== Files 3039 3039 Lines 629069 629069 Branches 46835 46835 =================================================== - Hits 468496 468490 -6 - Misses 157224 157228 +4 - Partials 3349 3351 +2 ``` | [Flag](https://app.codecov.io/gh/dotnet/winforms/pull/11571/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | Coverage Δ | | |---|---|---| | [Debug](https://app.codecov.io/gh/dotnet/winforms/pull/11571/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `74.47355% <ø> (-0.00096%)` | :arrow_down: | | [integration](https://app.codecov.io/gh/dotnet/winforms/pull/11571/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `17.98358% <ø> (-0.00246%)` | :arrow_down: | | [production](https://app.codecov.io/gh/dotnet/winforms/pull/11571/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `47.33589% <ø> (-0.00210%)` | :arrow_down: | | [test](https://app.codecov.io/gh/dotnet/winforms/pull/11571/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `96.96194% <ø> (ø)` | | | [unit](https://app.codecov.io/gh/dotnet/winforms/pull/11571/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet) | `44.31835% <ø> (-0.00351%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dotnet#carryforward-flags-in-the-pull-request-comment) to find out more.