What are Default Interface Methods in C# 8.0?by@miguel-bernard
251 reads

What are Default Interface Methods in C# 8.0?

by Miguel Bernard5mApril 14th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Microsoft introduced default interface methods in C# 8.0 in September. The new feature will enable many scenarios that were previously difficult or impossible to achieve. They mostly behave like virtual methods in an abstract class. This makes all the difference when it comes to code reuse, a.k.a. the Don't Repeat Yourself (DRY) principle. The approach is also very non-intrusive and won't conflict with existing code, which means it will be easy to slowly adopt it.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - What are Default Interface Methods in C# 8.0?
Miguel Bernard HackerNoon profile picture
Miguel Bernard

Miguel Bernard

@miguel-bernard

Miguel is passionate about teaching, developers' communities and everything related to .Net.

Learn More
LEARN MORE ABOUT @MIGUEL-BERNARD'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Miguel Bernard HackerNoon profile picture
Miguel Bernard@miguel-bernard
Miguel is passionate about teaching, developers' communities and everything related to .Net.

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
Also published here
L O A D I N G
. . . comments & more!