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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.