docs icon indicating copy to clipboard operation
docs copied to clipboard

CommunityToolkit.Mvvm partial methods and IDE0060

Open robertodalmonte opened this issue 2 years ago • 0 comments

[Enter feedback here]

Hello, I'm using the CommunityToolkit.Mvvm Version="8.0.0" and pretty often I take advantage of the partial methods created: EXAMPLE: [ObservableProperty] private int _startAgeFilter;

then I use: partial void OnStartAgeFilterChanged(int value) { Filter(); }

I get the warning since the value parameter is not used, but I can't remove it otherwise I get a compile-time error (No defining declaration).

Regards Roberto

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

robertodalmonte avatar Aug 08 '22 07:08 robertodalmonte