The Role of Events, Delegates and Event Handlers
The Role of Events
The Role of Delegates
The Role of Event Handlers
Demo: Events, Delegates and Event Handlers in Action
Events Raiser
Event Handler
Delegates
Creating Delegates, Events and EventArgs
Creating Delegates
Demo: Creating Customer Delegates
Demo: Adding Multiple Delegates to an Invocation list
Demo: Returning a value using a Delegates
Note: In the case of Returning value in Multicast Delegates, only last value would be returned from the Delegates
Defining the Event
Demo: Defining Events
Raising Events
Demo: Raising Events
Creating EventArgs
Demo: Creating an EventArgs Class
Handling Events
Instantiating Delegates and Handling Events
Demo: Instantiating Delegates and Handling Events
Delegates Inference
Using Anonymous Methods
Lambdas, Action<T> and Func<T,TResult>
Demo: Getting Started With Lambda
Demo: Using Lambdas with Custom Delegates
Using Action<T>
Demo: Using Action<T>
Using Func<T,TResult>
Demo: Using Func<T,TResult>
Demo: Using Lambdas and Func<T,TResult> to Query Objects
Events and Delegates in Action
Communicating Between Components with Events and Delegates
Asynchronous Delegates – Bad
Asynchronous Delegates – Good
Using Back ground Worker Events
The Role of Delegates with Threads
Blogger Labels: Events,Delegates,Lambdas,Role,Event,Handlers,Demo,Action,Raiser,Handler,EventArgs,Customer,Multiple,Invocation,Note,Multicast,Class,Inference,Anonymous,Methods,Func,TResult,Lambda,Custom,Query,Objects,Components,Asynchronous,Back,Worker,Threads
No comments:
Post a Comment