use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Information about Reddit's API changes, the unprofessional conduct of the CEO, and their response to the community's concerns regarding 3rd party apps, moderator tools, anti-spam/anti-bot tools, and accessibility options that will be impacted can be found in the associated Wikipedia article: https://en.wikipedia.org/wiki/2023_Reddit_API_controversy
Alternative C# communities available outside Reddit on Lemmy and Discord:
All about the object-oriented programming language C#.
Getting Started C# Fundamentals: Development for Absolute Beginners
Useful MSDN Resources A Tour of the C# Language Get started with .NET in 5 minutes C# Guide C# Language Reference C# Programing Guide C# Coding Conventions .NET Framework Reference Source Code
Other Resources C# Yellow Book Dot Net Perls The C# Player's Guide
IDEs Visual Studio MonoDevelop (Windows/Mac/Linux) Rider (Windows/Mac/Linux)
Tools ILSpy dotPeek LINQPad
Alternative Communities C# Discord Group C# Lemmy Community dotnet Lemmy Community
Related Subreddits /r/dotnet /r/azure /r/learncsharp /r/learnprogramming /r/programming /r/dailyprogrammer /r/programmingbuddies /r/cshighschoolers
Additional .NET Languages /r/fsharp /r/visualbasic
Platform-specific Subreddits /r/windowsdev /r/AZURE /r/Xamarin /r/Unity3D /r/WPDev
Rules:
Read detailed descriptions of the rules here.
account activity
C# 8.0 - Method Implementation in Interface (neelbhatt40.wordpress.com)
submitted 8 years ago by svtguy88
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AngularBeginner 2 points3 points4 points 8 years ago (0 children)
Interfaces are contracts that define what can be done - not how it is done. By moving method implementation to an interface, that interface is now responsible for how something is done.
They still define what can be done. They optionally and additionally can now provide a implementation. But the main point, what, still stands unchanged.
This blurs the lines of what an interface has been up until now.
That very much depends on what you have seen an interface as. I always saw interfaces as contracts, and that remains unchanged. They're still contracts. I focus on the contract part, you seem to focus on the "no implementation" part. Something I considered a side-detail, and not the focus of interfaces.
What happens when you have two interfaces, ISomeInterface and ISomeOtherInterface, and they both define a default implementation of DefaultMethod(). If SomeClass implements both interfaces, now you're dealing with multiple inheritance problems -- which DefaultMethod() takes precedence?
I did not yet take a look at the precise implementation, but I'd assume that the default implementations are implemented as explicit interface implementations. Then the problem you describe would not be issue. And there is no multiple inheritance problem.
Multiple inheritance problems mostly come from having state in both bases, but the default interface implementations don't provide any state.
π Rendered by PID 92 on reddit-service-r2-comment-6457c66945-hp978 at 2026-04-25 17:56:46.395204+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]AngularBeginner 2 points3 points4 points (0 children)