© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
13 replies
joeystdio

✅ Why return IServiceCollection in an extension method?

Is there any reason why not to make the method void instead?
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ Why doesn't every method in Collection<T> has an extension point?
C#CC# / help
3y ago
interface vs extension method vs method in class
C#CC# / help
3y ago
Method doesnt return
C#CC# / help
3y ago
❔ Encapsulation with Extension Method
C#CC# / help
4y ago