private static void CallDoctor(object sender, FallsIllEventArgs e) { Console.WriteLine($"Calling the doctor {e.Address}"); }
private static void CallDoctor(object sender, FallsIllEventArgs eventArgs) { Console.WriteLine($"A doctor has been called to {eventArgs.Address}"); }
//3、在运行时,给委托赋值 private static void CallDoctor(object sender, FallsIllEventArgs eventArgs) { Console.WriteLine($"a doctor must go {eventArgs.Address} to give service"); }