Inheritance: INotifyPropertyChanged, IValidatableObject
Exemplo n.º 1
0
 private static void Main(string[] args)
 {
     var john = new Person(Name: "John", Value: 23);
     var johnDoe = Person.NameLens.Update(john, x => x + " Doe");
     Console.WriteLine(johnDoe.Name);
 }
 public SayHelloCommand(Person person)
 {
     _person = person;
     _person.PropertyChanged += OnModelPropertyChanged;
 }