KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a generic class in my project with derived classes. public class GenericClass<T> : GenericInterface<T> { } public class Test : GenericClass<SomeType> { } Is there any way to find out if a Type object is derived from GenericClass ? t.IsSubclassOf(typeof(GenericClass<>)) does not work.
Tags (comma-separated)
Save Edits
Cancel