© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
12 replies
Tom

✅ Methods (with bodies) in interfaces

Hi!
C# allows interfaces to contain methods already with some implementation (i.e. with body).
As I can easily think about taking advantage of this, but doesn't it deny the main reason interfaces exists - i.e. to abstract things?
If it were your decision whould you use this functionality in your project or stick only to other options (like putting logic inside abstract classes, using services, etc.)?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Interfaces in C#
C#CC# / help
13mo ago
❔ How does the execution pipeline works with interfaces that implement methods?
C#CC# / help
3y ago
Declaring methods with `in` parameters
C#CC# / help
14mo ago
Interfaces
C#CC# / help
3y ago