Book Image

Functional Programming in C# - Part 1 [Video]

By : Wisnu Anggoro
Book Image

Functional Programming in C# - Part 1 [Video]

By: Wisnu Anggoro

Overview of this book

<p>Functional programming makes your application faster, improves performance, and increases your productivity. C# code is written at a higher level of abstraction, so that code will be closer to business requirements, abstracting away many low-level implementation details.This video bridges the language gap for C# developers by showing you how to create and consume functional constructs in C#. We also bridge the domain gap by showing how functional constructs can be applied in business scenarios. We’ll take you through lambda expressions and extension methods, and help you develop a deep understanding of the concepts and practices of LINQ and recursion in C#.By the end of the video, you will be able to write code using the best approach and will be able to perform unit testing in functional programming, changing how you write your applications and revolutionizing your projects.</p> <h2>Style and Approach</h2> <p>This course takes a pragmatic approach and shows you techniques to write better functional constructs in C#. We’ll also show you how these concepts can be applied in business scenarios.</p>
Table of Contents (4 chapters)
Chapter 3
Expressing Anonymous Methods with Lambda Expressions
Content Locked
Section 3
Subscribing for Events Using Lambda Expressions
In C#, an object or a class can be used to inform other objects or classes when something happens, which is known as an event. There are two kinds of classes in the event, they are publishers and subscribers. Let’s learn how lambda expressions are used to handle events. - Using the event keyword - Use event handler