-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Functional Programming with C#
By :

In this chapter, we’ll dive into higher-order functions and delegates in C#. These concepts are crucial in functional programming and will help you write more flexible and maintainable code.
Higher-order functions are simply functions that can take other functions as arguments or return a function. This might sound complex, but don’t worry; we’ll break it down with clear examples and explanations. Higher-order functions are a key part of functional programming, allowing you to write code that’s both more concise and more expressive.
Delegates in C# are closely related to higher-order functions. They are like variables for methods, allowing you to pass methods as arguments or store them as values. This chapter will help you understand how to use delegates to implement higher-order functions in the following sections:
Change the font size
Change margin width
Change background colour