How can I know whether a class if blueprint class or c++ class?

I want to write some codes like this:

if(TestClass.IsBlueprintClass(){ Do Something }

else if(TestClass.IsCppClass(){ Do Other thing }

But I haven’t found any API like IsBlueprintClass or IsCppClass.

Is there any way to achieve the logic above? Thanks

Do you have the reason why you are doing this? Blueprint classes are basically just inherited classes from the C++ code.

For example, you can make a TestClass in C++, and have a TestClass Blueprint, with it’s parent set to the C++ code. Both of these will still be of the class TestClass.