Skip to content

Latest commit

 

History

History

ch06

Chapter 6 - Delegates, Lambdas and Events

This chapter requires the .NET SDK to be installed – for the WPFWithEvents sample, using Windows is required.
https://github.com/PacktPublishing/Expert-CSharp-Programming repository contains the code samples for this chapter.

The projects of this chapter are:

  • DelegatesSamples - foundations for Delegates
  • ThreadingTimer - delegates used as a parameter
  • Closures - accessing variables outside the scope of a lambda expression
  • TimersTimer - using events with a timer
  • EventsSample - creating and using custom events
  • WeakEvents - events using weak references
  • WPFWithEvents - WPF application with routing events
  • BlazorEvents - event callbacks in Blazor