Top "Reflection" questions

How can I get a list of all classes within current module in Python?

I've seen plenty of examples of people extracting all of the classes from a module, usually something like: # foo.py …

python reflection inspect
How to convert a Java object (bean) to key-value pairs (and vice versa)?

Say I have a very simple java object that only has some getXXX and setXXX properties. This object is used …

java reflection collections javabeans
How to get function parameter names/values dynamically?

Is there a way to get the function parameter names of a function dynamically? Let’s say my function looks …

javascript reflection function-parameter
Get type of a generic parameter in Java with reflection

Is it possible to get the type of a generic parameter? An example: public final class Voodoo { public static void …

java generics reflection
How do I check if a type is a subtype OR the type of an object?

To check if a type is a subclass of another type in C#, it's easy: typeof (SubClass).IsSubclassOf(typeof (BaseClass)); // …

c# reflection types subclass
Type.GetType("namespace.a.b.ClassName") returns null

This code: Type.GetType("namespace.a.b.ClassName") returns null. and I have in the usings: using namespace.a.b; …

c# reflection
Correct Way to Load Assembly, Find Class and Call Run() Method

Sample console program. class Program { static void Main(string[] args) { // ... code to build dll ... not written yet ... Assembly assembly = Assembly.…

c# .net reflection
How to tell if a JavaScript function is defined

How do you tell if a function in JavaScript is defined? I want to do something like this function something_…

javascript reflection
How to get a property value based on the name

is there a way to get the value of a property of a object based on its name? For example …

c# asp.net reflection
How to check whether a variable is a class or not?

I was wondering how to check whether a variable is a class (not an instance!) or not. I've tried to …

python reflection