In this article we will see what extension methods are, why we need them and how to create them.Extension methods are methods which allow you to extend a type, even if you don't have the source code for that type. Let's understand it with a simple example: Suppose you want to add an IsNumeric method to a string class to check whether a string is numeric or not. What will you do?
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: