none
check if some class is inherited from an interface. RRS feed

  • Question

  • For class we can do following - typeof(DerivedType).IsSubclassOf(typeof(SomeBaseClass))
    But that doesn't work - typeof(DerivedType).IsSubclassOf(typeof(SomeInterface))
    Is it possible to check if some class is inherited from some interface or not? Thanks in advance.

    Friday, May 18, 2012 9:05 AM

Answers

All replies