Exemple #1
0
 public void Subscribe(Medium medium)
 {
     medium.EventBreakingNews += new Medium.NewsDelegate(PrintNews);
 }
Exemple #2
0
 public void Subscribe(Medium medium)
 {
     medium.EventBreakingNews += new Medium.NewsDelegate(PrintNews);
     Console.WriteLine($"{this.Name} is subscribed");
 }