Files
Torch/Piston/ViewModels/ViewModel.cs
2016-09-24 13:08:36 -07:00

24 lines
648 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Piston
{
/// <summary>
/// Provides a method to notify an observer of changes to an object's properties.
/// </summary>
public class ViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void OnPropertyChanged([CallerMemberName] string propName = "")
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propName));
}
}
}