Skip to content

Instantly share code, notes, and snippets.

@jittuu
Created June 26, 2011 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jittuu/1047461 to your computer and use it in GitHub Desktop.
Save jittuu/1047461 to your computer and use it in GitHub Desktop.
public class FormulaSample : ObservableBase
{
private decimal a;
public decimal A
{
get { return a; }
set
{
this.a = value;
RaisePropertyChanged("A");
}
}
private decimal b;
public decimal B
{
get { return b; }
set
{
this.b = value;
RaisePropertyChanged("B");
}
}
public Formula<decimal> C
{
get
{
return Formula(() => this.A + this.B, "A", "B");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment