Beispiel #1
0
 public void ReactToNewBook(object sender, NewBookEventArgs e)
 {
     if (e.Title.Contains(FavouriteBookSubject))
     {
         Console.WriteLine($"{Name} is really excited about {e.Title}!");
     }
 }
Beispiel #2
0
 public static void GetExcitedAboutNewBook(object sender, NewBookEventArgs e)
 {
     Console.WriteLine($"HEY! {e.Title} IS OUT! WOW!");
 }