About 52 results
Open links in new tab
  1. 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.

  2. What syntax is expected in C++26 for static reflection?

    Mar 7, 2023 · As far as I know, static reflection is currently on the roadmap for C++26. The reflection TS proposes a type-based syntax, but a value-based syntax has also been proposed in the meantime. …

  3. php - How does Reflection in Laravel work? - Stack Overflow

    Nov 9, 2017 · How does reflection in Laravel actually work? I tried to debug it to see how Laravel uses reflection in a controller's constructor or methods to resolve their dependencies and sub …

  4. Get a member object using reflection (or some other way)

    Feb 25, 2011 · You can use GetField instead of GetProperty if you want to retrieve a field. FieldInfo field = object.GetType().GetField(fieldName); object fieldValue = field.GetValue(Context.Parent); or is it …

  5. 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 code looks ...

  6. c# - Use reflection to get the value of a property by name in a class ...

    Jun 21, 2011 · Ask yourself whether strongly typed access is the better option. Most of the time this is the case.

  7. reflexão - O que é reflection? - Stack Overflow em Português

    Nov 6, 2014 · Estamos a criar um site sobre a historia informática dos anos 70 ate 90, e a um certo ponto encontrei o paradigma reflective. Tem este ultima alguma a coisa a ver com reflection, que já …

  8. 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 …

  9. Get object instance from Class<*> (Reflection) - Stack Overflow

    Jan 4, 2018 · Looks like method you are trying to access need to be static. If this is not the case then you can always create the instance of the class using reflection. You have Class instance and you …

  10. The current state of reflection in C++20 - Stack Overflow

    Jul 28, 2021 · Here is a link to Andrei Alexandrescu' talk on reflection at CppCon 2022, which addresses your main question: the proposals for reflection are still in the pipeline. Assuming the three-year …