Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GenericClass<T>
- {
- ...
- }
- public class SubClass : BaseClass
- {
- ...
- }
- public void Test(object someClass)
- {
- if(someClass is SubClass)
- // Do Stuff
- // How do you properly check if someClass is the GenericClass<T> and which type T is of?
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement