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

  2. Detect if a method was overridden using Reflection (C#)

    class Test1 : TestBase { public override bool TestMe() {} } Now, using Reflection, I need to find if the method TestMe has been overriden in child class - is it possible? What I need it for - I am writing a …

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

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

  5. 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. Right now I am …

  6. java - Reflection generic get field value - Stack Overflow

    Nov 15, 2012 · I am trying to obtain a field's value via reflection. The problem is I don't know the field's type and have to decide it while getting the value. This code results with this exception: Can not set...

  7. Java Reflection: Create an implementing class - Stack Overflow

    Sep 19, 2015 · Creating something which pretends to implement an interface on the fly actually isn't too hard. You can use java.lang.reflect.Proxy after implementing InvocationHandler to handle any …

  8. How to get a Static property with Reflection - Stack Overflow

    So this seems pretty basic but I can't get it to work. I have an Object, and I am using reflection to get to its public properties. One of these properties is static and I'm having no luck gettin...

  9. c# - Getting Enum value via reflection - Stack Overflow

    I have a simple Enum public enum TestEnum { TestOne = 3, TestTwo = 4 } var testing = TestEnum.TestOne; And I want to retrieve its value (3) via reflection. Any ideas on how to do this?

  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 …