Created
May 20, 2012 01:33
-
-
Save SimonCropp/2733157 to your computer and use it in GitHub Desktop.
ILWeaving and ReactiveUI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"); | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Person : ReactiveObject | |
| { | |
| public string GivenNames { get; set; } | |
| public string FamilyName { get; set; } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍