Generic types and Type.IsSubclassOf
Type.IsSubclassOf does not work with generic types because the generics are not inheritence.
Here is what worked for me:
genericMonkey.GetType().GetGenericTypeDefinition()
Here is more info on this topic:
No comments yet. Be the first.
Leave a reply