check if type is child of type

Code Example - check if type is child of type

                
                        typeof (SubClass).IsSubclassOf(typeof (BaseClass)); // returns true