Create and manage events

Beginner
Developer
Student
.NET
Visual Studio Code

Learn the fundamentals of events in C#, including their reliance on delegates and their role in enabling communication between objects.

Learning objectives

  • Understand Events and Delegates in C#.

  • Examine and Declare Events in C#.

  • Encapsulate and Raise Events in C#.

  • Manage Event Subscription and Unsubscription in C#.

Prerequisites

  • An installation of Visual Studio Code with the C# Dev Kit extension installed.

  • The ability to develop object-oriented programs in C# that implement classes, interfaces, class inheritance, and polymorphic behavior.

  • The ability to manage collections, structs, records, generics, dates and times, and anonymous types.

  • A basic understanding of file IO, JSON serialization, and asynchronous programming.