Skip to Content
Mastering Events and Delegates in C#
on-demand course

Mastering Events and Delegates in C#

with Rod Stephens
June 2016
Advanced
2h 39m
English
Infinite Skills

Overview

Simple event handlers that do things like make buttons and menu items perform actions, are commonly used by even novice C# programmers. The concept of delegates can seem more complicated and is often avoided by beginners for that reason. However, delegates are working behind the scenes and you are using them without realizing it every time you use events. A better understanding and more control of event handlers will come with a better understanding of delegates.

In this course, C# wizard Rod Stephens reveals the relationship between delegates and events. He shows you how delegates function, and once that is clear he takes you on a tour of the advanced ways in which you can now work with events. Prerequisites for the course include some C# experience and a computer running Visual Studio 2015.

  • Become a better C# programmer by understanding the relationship between delegates and events
  • Learn to use delegate types pre-defined by the .NET framework, and define your own delegates
  • Discover how to create delegate variables that let you manipulate methods as if they were data
  • Learn how to use event handlers in Windows forms and WPF applications
  • Understand how to define and raise events, and how to create and use routed events
  • Explore tunneling, bubbling, and custom routed events
Rod Stephens, president of Rocky Mountain Computer Consulting, is the author of more than 30 books and 250 articles about various programming topics, including the O'Reilly titles Using Interfaces in C#, Learning Visual Basic .NET, and the C# 24-Hour Trainer. He's a professional developer with more than 20 years of experience with Visual Studio and a 13-year Microsoft MVP.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Watch now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

50 Things You've Been Doing Wrong in C# and .NET Core

50 Things You've Been Doing Wrong in C# and .NET Core

Onur Gumus
Code like a Pro in C#

Code like a Pro in C#

Jort Rodenburg

Publisher Resources

ISBN: 9781491962688