Objective 1.4: Create and implement events and callbacks
An event can be used to provide notifications. You can subscribe to an event if you are interested in those notifications. You can also create your own events and raise them to provide notifications when something interesting happens. The .NET Framework offers built-in types that you can use to create events. By using delegates, lambda expressions, and anonymous methods, you can create and use events in a comfortable way.
Understanding delegates
In C#, delegates form the basic building blocks for events. A delegate is a type that defines a method signature. In C++, for example, you would do this ...
Get Exam Ref 70-483: Programming in C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.