© 2026 Hedgehog Software, LLC

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

✅ Can i put constraint on ctor in interface

I know the name is kinda misleading, but i couldn't think of anything else. So can i have interface, that defines how will ctor of the class that implements the interface look like?
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

❔ Defining base impl ctor in interface
C#CC# / help
3y ago
✅ where constraint on interface method
C#CC# / help
2y ago
✅ Is it possible to put a generic constraint on a record?
C#CC# / help
3y ago
❔ Ctor DI vs IServiceProvider.GetService
C#CC# / help
4y ago