About 33,800 results
Open links in new tab
  1. 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 methods were …

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

  3. 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. You can pass it …

  4. 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.

  5. 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 class for example.

  6. Reflection support in C - Stack Overflow

    Aug 30, 2009 · Reflection in general is a means for a program to analyze the structure of some code. This analysis is used to change the effective behavior of the code. Reflection as analysis is generally …

  7. c# - Get object by reflection - Stack Overflow

    Oct 3, 2011 · Car car1; Car car2; Car car = (Car)SomeMechanism.Get("car1"); car1 and car2 are fields So I want to get some object with reflection, not type :/ How can I do it in c# ?

  8. Get property value from string using reflection - Stack Overflow

    I am trying implement the Data transformation using Reflection 1 example in my code. The GetSourceValue function has a switch comparing various types, but I want to remove these types …

  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 if I...

  10. Javascript Reflection - Stack Overflow

    Sep 5, 2016 · Is there a way to get all methods (private, privileged, or public) of a javascript object from within? Here's the sample object: var Test = function() { // private methods function testOne() {...