paint-brush
Building Your Own Toolbox with Extension Methods in C#by@msarica
787 reads
787 reads

Building Your Own Toolbox with Extension Methods in C#

by Mehmet2mJanuary 8th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Extension methods are one of the coolest features of C#. They allow custom methods to be used on objects without needing to extend or change the underlying class. It's only a static method and it can only access the public interface of the object. It makes it look like the object has the method and allows us to write code in a declarative fashion. It expects an object of type, and if it is not, it calls the delegate function that's passed in. The C# toolbox is nothing but a collection of extension methods.
featured image - Building Your Own Toolbox with Extension Methods in C#
Mehmet HackerNoon profile picture
Mehmet

Mehmet

@msarica

msarica.com

About @msarica
LEARN MORE ABOUT @MSARICA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mehmet HackerNoon profile picture
Mehmet@msarica
msarica.com

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Alvinashcraft
Coffee-web
Refind