Top "Reflection" questions

C# generic list <T> how to get the type of T?

I'm working on a reflection project, and now I'm stuck. If I have an object of myclass that can hold …

c# reflection generic-list
I want to get the type of a variable at runtime

I want to get the type of a variable at runtime. How do I do this?

scala reflection
Any way to Invoke a private method?

I have a class that uses XML and reflection to return Objects to another class. Normally these objects are sub …

java reflection private
Printing all variables value from a class

I have a class with information about a Person that looks something like this: public class Contact { private String name; …

java reflection
Is it possible in Java to access private fields via reflection

Is it possible in Java to access private field str via reflection? For example to get value of this field. …

java reflection
How to Load an Assembly to AppDomain with all references recursively?

I want to load to a new AppDomain some assembly which has a complex references tree (MyDll.dll -> …

c# .net reflection assemblies appdomain
Java: get all variable names in a class

I have a class and I want to find all of its public fields (not methods). How can I do …

java reflection
Java array reflection: isArray vs. instanceof

Is there a preference or behavior difference between using: if(obj.getClass().isArray()) {} and if(obj instanceof Object[]) {} ?

java arrays reflection
How to get annotations of a member variable?

I want to know a class's some member variable's annotations , I use BeanInfo beanInfo = Introspector.getBeanInfo(User.class) to introspect …

java reflection annotations beaninfo
Check if a property exists in a class

I try to know if a property exist in a class, I tried this : public static bool HasProperty(this object …

c# .net reflection