Exemple #1
0
 private static void Person_NameChanged(object sender, NameChangeEventArgs e)
 {
     Console.WriteLine($"{Person.FormatNames(e.OldFirstName, e.OldLastName)} has changed their name to {Person.FormatNames(e.NewFirstName, e.NewLastName)}");
 }
Exemple #2
0
 private static void SomeoneChangedTheirName(object sender, NameChangeEventArgs e)
 {
     Console.WriteLine("Someone changed their name");
 }