...

/

What Are Extension Methods?

What Are Extension Methods?

Learn how to write extension methods.

We need extension methods because LINQ uses extensions methods on the IEnumerable type. And, we’ll likely find extension methods handy outside this course too.

We can add new methods to a type without modifying it with extension methods. They are static methods defined outside the declaration of a type. But we use extension methods the same way we use typical ...