About 142,000 results
Open links in new tab
  1. How to Use C++26 Reflections Properly and Make the Best Use of …

    Jul 19, 2024 · I'm exploring the upcoming C++26 reflections feature and I'm excited about its potential to simplify many tasks that involve introspection and metaprogramming. However, I'm …

  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. Change private static final field using Java reflection

    Jul 21, 2010 · I have a class with a private static final field that, unfortunately, I need to change it at run-time. Using reflection I get this error: java.lang.IllegalAccessException: Can not set …

  4. what is reflection in C#, what are the benefit. How to use it to get ...

    Jun 23, 2010 · Reflection lets your code call methods and properties that you didn't know about when the code was compiled. One of the built in classes that uses this is the XmlSerializer. …

  5. c# - Find a private field with Reflection? - Stack Overflow

    class Foo { // Want to find _bar with reflection [SomeAttribute] private string _bar; public string BigBar { get { return this._bar; } } } I want to find the private item _bar that I will mark with a …

  6. How can I add reflection to a C++ application? - Stack Overflow

    Sep 3, 2008 · The information you can get back from RTTI isn't enough to do most of the things you'd actually want reflection for though. You can't iterate over the member functions of a …

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

    static class Indent{ public static void Run(){ // implementation } // other helper methods } So my question is how would it be possible to call those methods with the help of reflection? If the …

  8. How do I use reflection to invoke a private method?

    There are a group of private methods in my class, and I need to call one dynamically based on an input value. Both the invoking code and the target methods are in the same instance. The …

  9. Reflection: How to Invoke Method with parameters - Stack Overflow

    I am trying to invoke a method via reflection with parameters and I get: object does not match target type If I invoke a method without parameters, it works fine. Based on the following code …

  10. c# - Using reflection to get values from properties from a list of a ...

    May 23, 2012 · I am trying to get the values from objects inside a list which is part of a main object. I have the main object which contains various properties which can be collections. …