© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
15 replies
kunio_kun

❔ Check What Generic Type a Class Implements

Hi, I'm trying to find if a class implements
ISomething<T>
ISomething<T>
and what T is

For example, to find Foo in this class implementing ISomething<T>
public class Something: ISomething<Foo>
public class Something: ISomething<Foo>


Is it possible?

Thanks in advance
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

❔ giving current class type to a generic class
C#CC# / help
3y ago
Casting class with generic variable to the same class with an interface that the generic implements
C#CC# / help
2y ago
✅ Receiving any instance of a generic class in a method, no matter what the generic type is.
C#CC# / help
3y ago
Check whether list of generics contains a type, that implements interface
C#CC# / help
2y ago