Chapter 4. Extending Object Functionality with Extension Methods

As we have already mentioned in the previous chapter, we are going to discuss extension methods in greater detail in this chapter. It will be helpful when we talk about LINQ, the essential technique of functional programming in C#, in the next chapter. The following are the topics we will cover in this chapter:

  • Practicing the use of extension methods and getting this new method in IntelliSense
  • Invoking extension methods from other assemblies
  • Creating new methods for an interface, collection, enumeration, and other objects
  • The advantages of extension methods in relation to functional programming
  • The limitations of extension methods

Getting closer to extension methods

An extension method ...

Get Functional C# now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.