About 8,240,000 results
Open links in new tab
  1. c# - Reflection: How to get a generic method? - Stack Overflow

    Possible Duplicates: How to use reflection to call generic Method? Select Right Generic Method with Reflection Hi there Let's say I have two following two methods in a class: public void My...

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

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

    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 designer visualizer for type "object" to show the …

  4. Newest 'reflection' Questions - Stack Overflow

    2 days ago · 1 answer 130 views .Net 8 dependency injection using reflection: service with generic method returning Task<> I want to load all types from an assembly and register them …

  5. c# - How costly is .NET reflection? - Stack Overflow

    Reflection is costly because of the many checks the runtime must make whenever you make a request for a method that matches a list of parameters. Somewhere deep inside, code exists …

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

    Reflection is slow. Private members reflection breaks encapsulation principle and thus exposing your code to the following : Increase complexity of your code because it has to handle the …

  7. How do I call a generic method using a Type variable?

    Otherwise, you have to create an object of that type or use the standard reflection API solution. You can create an object by using the Activator.CreateInstance method. If you want to call a …

  8. wpf - Reflection in C#? - Stack Overflow

    Feb 26, 2011 · 4 Reflection is a powerful API. At its basic level, reflection allows you to: Inspect the types contained in an assembly Inspect the members of a given type, including metadata …

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

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