-5

I’m quite new to C# 8.0 and I want to know what is the default interface implementation?

Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
Kevin
  • 785
  • 1
  • 4
  • 7
  • 2
    [Here you go](https://www.google.com/search?q=default+interface+implementation+c%23) – Robby Cornelissen Oct 20 '20 at 01:15
  • [Here's the Microsoft Blog](https://devblogs.microsoft.com/dotnet/default-implementations-in-interfaces/) for this feature. Essentially, instead of implementers needing to implement all members of the interface, you can have a default implementation for members, which the implementers don't have to override. – Hayden Oct 20 '20 at 01:16
  • Read this: [How I Learned to Love Default Implementations in C# 8.0](https://developer.okta.com/blog/2020/01/10/default-implementation-csharp) – C. Augusto Proiete Oct 20 '20 at 01:18
  • The description of the `default-interface-member` tag offers a far better answer – Panagiotis Kanavos Nov 24 '20 at 19:39

1 Answers1

-1

Default implementations is a feature in C# 8.0 that an interface member can now be specified with a code body, and if an implementing class or struct does not provide an implementation of that member, no error occurs. Instead, the default implementation is used.

Read more here: Default Interface Implementation

Kinin Roza
  • 1,908
  • 1
  • 7
  • 17