© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
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
❔ giving current class type to a generic class
C
C# / help
3y ago
Casting class with generic variable to the same class with an interface that the generic implements
C
C# / help
2y ago
✅ Receiving any instance of a generic class in a method, no matter what the generic type is.
C
C# / help
3y ago
Check whether list of generics contains a type, that implements interface
C
C# / help
2y ago