© 2026 Hedgehog Software, LLC

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

✅ Is it possible to convert a generic interface to a generic interface?

I'm trying to prevent the creation of multiple giant switches in a controller by passing the instantiation of the interfaces to a factory. Person is the parent class(model) and all the other ones are sub-classes that have no problem to convert to the parent class in another factory. Is this error appearing because it is impossible to convert interfaces?
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

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ Is it possible to put a generic constraint on a record?
C#CC# / help
3y ago
Interface implementing generic parameters
C#CC# / help
2y ago
help with generic interface
C#CC# / help
2y ago