Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mvvm INotifyPropertyChanged implementation
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace Mvvm
public class NotifyPropertyChanged : INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
public void OnPropertyChanged([CallerMemberName]String propertyName = null)
var handler = PropertyChanged;
if (handler != null)
handler(this, new PropertyChangedEventArgs(propertyName));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment