Top "Reflection" questions

Change private static final field using Java reflection

I have a class with a private static final field that, unfortunately, I need to change it at run-time. Using …

java reflection static private final
Using Case/Switch and GetType to determine the object

Possible Duplicate: C# - Is there a better alternative than this to ‘switch on type’? If you want to switch …

c# .net reflection switch-statement case
Tool to generate JSON schema from JSON data

We have this json schema draft. I would like to get a sample of my JSON data and generate a …

json validation reflection jsonschema
How to determine if a type implements an interface with C# reflection

Does reflection in C# offer a way to determine if some given System.Type type models some interface? public interface …

c# reflection interface
Get name of property as a string

(See below solution I created using the answer I accepted) I'm trying to improve the maintainability of some code involving …

c# reflection properties
Get class name of object as string in Swift

Getting the classname of an object as String using: object_getClassName(myViewController) returns something like this: _TtC5AppName22CalendarViewController I …

swift reflection typeof
Test if object implements interface

What is the simplest way of testing if an object implements a given interface in C#? (Answer to this question …

c# reflection interface
How can I add reflection to a C++ application?

I'd like to be able to introspect a C++ class for its name, contents (i.e. members and their types) …

c++ reflection templates sfinae
Loading DLLs at runtime in C#

I am trying to figure out how you could go about importing and using a .dll at runtime inside a …

c# reflection dll
Get property value from C# dynamic object by string (reflection?)

Imagine that I have a dynamic variable: dynamic d = *something* Now, I create properties for d which I have on …

c# reflection .net-4.0