O'Reilly logo

Beginning C# 2008: From Novice to Professional by Christian Gross

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Writing Functional Code in C#

C# is predominantly an imperative programming language, which means that it deals primarily with changes in state. However, C# 3.0 is starting to show its functional programming side. Functional programming aims to create code that does not produce any side effects. Many of the previous chapters included functional programming aspects, without calling it functional programming. In this chapter, I am going to put the stake in the ground and explain functional programming.

Chapters 9 and 11 covered .NET generics and lambda expressions in the context of C#. You learned how to use those features to solve problems in an object-oriented manner. In this chapter, you'll learn how to use them to solve problems in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required