Arkane5
Arkane5
Isn't this a duplicate of issue #50 ?
It is possible to configure CA1822 so that public methods don't trigger it. Simply add `dotnet_code_quality.CA1822.api_surface = private, internal` to the .editorconfig file in your solution. [Source](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1822)
I am the one who opened the ticket on Developer Community. Here are some links for an easier investigation: - [KeyGesture.GetDisplayStringForCulture](https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGesture.cs#L155) - [KeyGestureConverter.ConvertTo](https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/Command/KeyGestureConverter.cs#L135) - [KeyConverter class](https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Input/KeyConverter.cs)
This issue is also a duplicate of #3126.
@tonyawad88 and @timmi4sa : After close to 7 years, you probably moved on or found the solution, but if anybody has the same issue, what you should put in `ErrorMessageResourceType`...
This seems to have been fixed.
Note that there are issues other than the wrong signature. Copy-paste from #11769 that I opened and closed a bit too soon: The return value can also be a class...