About 51 results
Open links in new tab
  1. Reflection support in C - Stack Overflow

    Aug 30, 2009 · Reflection as analysis is generally very weak; usually it can only provide access to function and field names. This weakness comes from the language implementers essentially not …

  2. java - What is reflection and why is it useful? - Stack Overflow

    Sep 1, 2008 · What is reflection, and why is it useful? I'm particularly interested in Java, but I assume the principles are the same in any language.

  3. Comparing Object properties using reflection - Stack Overflow

    The main value of reflection would be to write a general purpose object comparer that could take two instances of any kind of object and compare their public fields and properties. This helps avoid …

  4. What exactly is Reflection and when is it a good approach?

    May 14, 2009 · Reflection is a facility where you can query an object about its attributes at runtime. For example, Python, Java and .Net have facilities where you can find the instance variables or methods …

  5. c# - Set object property using reflection - Stack Overflow

    Is there a way in C# where I can use reflection to set an object property? Ex: MyObject obj = new MyObject(); obj.Name = "Value"; I want to set obj.Name with reflection. Something like: Reflection.

  6. Reflection - get attribute name and value on property

    In my main method, I'm using reflection and wish to get key value pair of each attribute for each property. So in this example, I'd expect to see "Author" for attribute name and "AuthorName" for the …

  7. Why is the use of reflection in .NET recommended?

    Sep 22, 2009 · The main value of Reflection is that it can be used to inspect assemblies, types, and members. It's a very powerful tool for determining the contents of an unknown assembly or object …

  8. How to get the list of properties of a class? - Stack Overflow

    Apr 10, 2009 · Following feedback... To get the value of static properties, pass null as the first argument to GetValue To look at non-public properties, use (for example) GetProperties(BindingFlags.Public | …

  9. Why does C++ not have reflection? - Stack Overflow

    Dec 11, 2008 · Unlike reflection in most languages, the plan for c++ reflection is compile time reflection. So at compile time, you can reflect over struct members, function and method parameters and …

  10. c# - Call static method with reflection - Stack Overflow

    You could really, really, really optimize your code a lot by paying the price of creating the delegate only once (there's also no need to instantiate the class to call an static method). I've done something very …