What are Default Interface Methods in C# 8.0?

Written by miguel-bernard | Published 2020/04/14
Tech Story Tags: csharp | coding | interface | dry | default-interface-methods | programming | software | engineering | web-monetization

TLDR 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.via the TL;DR App

no story

Written by miguel-bernard | Miguel is passionate about teaching, developers' communities and everything related to .Net.
Published by HackerNoon on 2020/04/14