Skip to content

Instantly share code, notes, and snippets.

@LucioMSP
Created July 22, 2019 14:47
Show Gist options
  • Save LucioMSP/188a756f6944efdb1ef80db3953b9b39 to your computer and use it in GitHub Desktop.
Save LucioMSP/188a756f6944efdb1ef80db3953b9b39 to your computer and use it in GitHub Desktop.
ObservableObject.cs
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace CurrencyUISample.Classes
{
public class ObservableObject : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment