Remove obsolete fxCop suppressions and references (#19905)

This commit is contained in:
CleanCodeDeveloper
2022-08-15 20:21:52 +02:00
committed by GitHub
parent 9100e03be9
commit 733041ba2b
5 changed files with 3 additions and 16 deletions

View File

@@ -109,18 +109,13 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
}
}
#pragma warning disable CA2227 // Collection properties should be read only
public ObservableCollection<ImageSize> Sizes
#pragma warning restore CA2227 // Collection properties should be read only
{
get
{
return _advancedSizes;
}
// FxCop demands collection properties to be read-only, but this
// setter is used in autogenerated files (ImageResizerPage.g.cs)
// and replacing the setter with its own method will break the file
set
{
SavesImageSizes(value);