Checks whether two classes are in the same inheritance chain, comparing by class NAME rather
than by object identity.
Name comparison is deliberate and matches ClassFactory.GetAllRegistrations: a module can be
loaded more than once (bundler code-splitting, multiple resolution paths), which yields two
distinct constructor objects for what is logically the same class. Identity comparison reads
that duplicate as an unrelated class, and reads a genuine subclass whose ancestor came from the
other copy of the module as unrelated too.
Parameters
ClassA: any
First class constructor
ClassB: any
Second class constructor
Returns boolean
True when the two are the same class, or one inherits from the other at any level
Checks whether two classes are in the same inheritance chain, comparing by class NAME rather than by object identity.
Name comparison is deliberate and matches
ClassFactory.GetAllRegistrations: a module can be loaded more than once (bundler code-splitting, multiple resolution paths), which yields two distinct constructor objects for what is logically the same class. Identity comparison reads that duplicate as an unrelated class, and reads a genuine subclass whose ancestor came from the other copy of the module as unrelated too.