stfld class CarDelegate.Car/AboutToBlow CarDelegate.Car::almostDeadList
ret
}
Removing a Target from a Delegate’s Invocation List
With the current updates to the Car class, we could stop receiving the Exploded notification by
updating Main() as follows:
static void Main(string[] args)
{
Console.WriteLine("***** Delegates as event enablers *****\n");
Car c1 = new Car("SlugBug", 100, 10);
Do'stlaringiz bilan baham: