Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 959 Bytes

File metadata and controls

18 lines (12 loc) · 959 Bytes

Readme - Code Samples for Chapter 7, Delegates, Lambdas, and Events

Delegates, Lambdas, and Events covers .NET pointers to methods, lambda expressions with closures, and .NET events.

This chapter contains the following code samples:

  • GetAStringDemo (declaring a delegate to a simple method)
  • SimpleDelegates (declaring and instantiating delegates)
  • MulticastDelegates (invoking multiple methods with a single delegate)
  • LambdaExpressions (creating lambda expressions)
  • AnonymousMethods (using the delegate keyword to declare an anonymous method)
  • EventsSample (subscribing and publishing events, event keyword)

For code comments and issues please check Professional C#'s GitHub Repository

Please check my blog csharp.christiannagel.com for additional information for topics covered in the book.

Thank you!