Top "Reflection" questions

Getting attributes of Enum's value

I would like to know if it is possible to get attributes of the enum values and not of the …

c# reflection enums .net-attributes
How to read the value of a private field from a different class in Java?

I have a poorly designed class in a 3rd-party JAR and I need to access one of its private fields. …

java class reflection field private
Setting a property by reflection with a string value

I'd like to set a property of an object through Reflection, with a value of type string. So, for instance, …

c# reflection type-conversion propertyinfo setvalue
Casting a variable using a Type variable

In C# can I cast a variable of type object to a variable of type T where T is defined …

c# reflection types
Getting all types that implement an interface

Using reflection, how can I get all types that implement an interface with C# 3.0/.NET 3.5 with the least code, and …

c# optimization reflection lambda c#-3.0
Set object property using reflection

Is there a way in C# where I can use reflection to set an object property? Ex: MyObject obj = new …

c# .net reflection properties
How do I use reflection to call a generic method?

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead …

c# .net generics reflection
How do I find out what type each object is in a ArrayList<Object>?

I have a ArrayList made up of different elements imported from a db, made up of strings, numbers, doubles and …

java generics reflection arraylist
What is the difference between instanceof and Class.isAssignableFrom(...)?

Which of the following is better? a instanceof B or B.class.isAssignableFrom(a.getClass()) The only difference that I …

java instanceof reflection
Java Reflection: How to get the name of a variable?

Using Java Reflection, is it possible to get the name of a local variable? For example, if I have this: …

java reflection