Skip to content

Instantly share code, notes, and snippets.

@SimonCropp
Created May 20, 2012 01:33
Show Gist options
  • Select an option

  • Save SimonCropp/2733157 to your computer and use it in GitHub Desktop.

Select an option

Save SimonCropp/2733157 to your computer and use it in GitHub Desktop.
ILWeaving and ReactiveUI
public class Person : ReactiveObject
{
public string FamilyName
{
get { return this.<FamilyName>k__BackingField; }
set
{
if (!string.Equals(this.<FamilyName>k__BackingField, value))
{
base.raisePropertyChanging("FamilyName");
this.<FamilyName>k__BackingField = value;
base.raisePropertyChanged("FamilyName");
}
}
}
public string GivenNames
{
get { return this.<GivenNames>k__BackingField; }
set
{
if (!string.Equals(this.<GivenNames>k__BackingField, value))
{
base.raisePropertyChanging("GivenNames");
this.<GivenNames>k__BackingField = value;
base.raisePropertyChanged("GivenNames");
}
}
}
}
public class Person : ReactiveObject
{
public string GivenNames { get; set; }
public string FamilyName { get; set; }
}
@anaisbetts

Copy link
Copy Markdown

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment