[Image Resizer] Upgraded to .NET Core 3.1 (#7317)

* project converted to sdk style

* image resizer core31

* image resizer test core31

* project and setup fixes
This commit is contained in:
Davide Giacometti
2020-10-22 18:26:46 +02:00
committed by GitHub
parent e2c94b592f
commit aa0947061a
19 changed files with 207 additions and 365 deletions

View File

@@ -0,0 +1,27 @@
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace ImageResizer.Helpers
{
public class Observable : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void Set<T>(ref T storage, T value, [CallerMemberName] string propertyName = null)
{
if (Equals(storage, value))
{
return;
}
storage = value;
OnPropertyChanged(propertyName);
}
protected void OnPropertyChanged(string propertyName) => PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}