© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
❔ Why doesn't every method in Collection<T> has an extension point?
C
C# / help
3y ago
interface vs extension method vs method in class
C
C# / help
3y ago
Method doesnt return
C
C# / help
3y ago
❔ Encapsulation with Extension Method
C
C# / help
4y ago