standards-c-sharp

Use extension methods when you don’t have control of the code you wish to extend

If you wish to add a method to a class with unavailable sourcecode, or you don’t fancy maintaining your own fork, then consider using an extension method to augment an existing class’s capabilities.