Top "Reflection" questions

Creating an instance using the class name and calling constructor

Is there a way to create an instance of a particular class given the class name (dynamic) and pass parameters …

java reflection instantiation
C# getting its own class name

If I have a class called MyProgram, is there a way of retrieving "MyProgram" as a string?

c# reflection
Can you find all classes in a package using reflection?

Is it possible to find all classes or interfaces in a given package? (Quickly looking at e.g. Package, it …

java reflection packages
Getting the name of the currently executing method

Is there a way to get the name of the currently executing method in Java?

java reflection methods
Reflection: How to Invoke Method with parameters

I am trying to invoke a method via reflection with parameters and I get: object does not match target type …

c# reflection parameters methods invoke
Converting Integer to Long

I need to get the value of a field using reflection. It so happens that I am not always sure …

java reflection casting
Reflection generic get field value

I am trying to receive field value via reflection. The problem is I don't know the fields type and have …

java reflection
Checking if a variable is defined?

How can I check whether a variable is defined in Ruby? Is there an isset-type method available?

ruby reflection
Reflection - get attribute name and value on property

I have a class, lets call it Book with a property called Name. With that property, I have an attribute …

c# reflection propertyinfo
Get properties and values from unknown object

From the world of PHP I have decided to give C# a go. I've had a search but can't seem …

c# reflection