Lynda - C# Delegates, Events, and Lambdas
Size: 406MB | Duration: 1h 09m | Video: AVC (.mp4) 1280x720 15fps | Audio: AAC 48KHz 2ch
Genre: eLearning | Level: Intermediate | Language: English
C# has the ability to create functions to fit a variety of scenarios, via delegates, events, and lambda functions. Join Joe Marini in this course for an exploration of these key elements, starting with delegates. As Joe explains, delegates allow developers to call functions in a way that allows for swapping while the program is running. He'll show how to create both anonymous and composable delegates to perform practical tasks, such as calculating shipping costs. Next, he'll cover using events to broadcast and listen to messages both inside and outside a program, switching functionality on and off on demand. Finally, Joe will explore lambda functions: concise ways to declare small and focused or one-off functions, which keep code tight and efficient.
Start watching to learn how to adapt this flexible set of programming tools to your own C# programming needs.