Extension Methods What are extension methods ? Extension methods provide us the ability to add methods to an existing class without changing its source code or creating a new class that inherits from it . Extension methods are the static methods but they are called as if they were instance methods on the extended type . Before we dig deep , lets find our reason on why does it came into existence ? Why and when should or we are recommend to use an extension method in your application . Let me show you an example here : Lets consider a scenario where we need to shorten the number of characters displayed based on the passed input . So as String being a sealed class we are neither allowed to inherit or extend it.This is where the extension methods are quite helpful . Define a static class that holds a static method which takes numberOfWords as one of its parameter and return a string . Their first parameter will be the type on which the method opera...