The PrimAndProperCarEvents (Generic) project is located under the Chapter 11 subdirectory.
Understanding C# Anonymous Methods
Traditionally speaking, when a caller wishes to listen to incoming events, it must define a unique
method that matches the signature of the associated delegate, for example:
class Program
{
static void Main(string[] args)
{
SomeType t = new SomeType();
Do'stlaringiz bilan baham: