Skip to content

Instantly share code, notes, and snippets.

@jittuu
Created June 26, 2011 10:11
Show Gist options
  • Save jittuu/1047464 to your computer and use it in GitHub Desktop.
Save jittuu/1047464 to your computer and use it in GitHub Desktop.
public abstract class ObservableBase : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected void RaisePropertyChanged(string propertyName)
{
if (this.PropertyChanged != null)
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
protected Formula<T> Formula<T>(Func<T> formula, params string[] dependencyProperties)
{
return new Formula<T>(this, formula, dependencyProperties);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment