Skip to content

Instantly share code, notes, and snippets.

View oloopy's full-sized avatar
🏠
Working from home

Bin Lu oloopy

🏠
Working from home
View GitHub Profile
@oloopy
oloopy / INotifyPropertyChanged
Created April 4, 2014 18:36
Implementation of INotifyPropertyChanged for ViewModel
using System.ComponentModel;
using System.Runtime.CompilerServices;
public class ViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
if (PropertyChanged != null)