About 51 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. c# - Get class methods using reflection - Stack Overflow

    Feb 25, 2017 · How can I get all the public methods of class using reflection when class name is passed as a string as shown in the below method. ? private MethodInfo[] GetObjectMethods(string …

  3. C# reflection and finding all references - Stack Overflow

    Sep 17, 2013 · Reflection alone is not enough to find all references to a method in a given assembly. Reflection gives you a byte array for the body of any particular method …

  4. C# Reflection: How to get class reference from string?

    FooClass.MyMethod(); Obviously, I need to find a reference to the class via reflection, but how?

  5. Reflection - get attribute name and value on property

    In my main method, I'm using reflection and wish to get key value pair of each attribute for each property. So in this example, I'd expect to see "Author" for attribute name and "AuthorName" for the …

  6. Java introspection and reflection - Stack Overflow

    Jan 11, 2010 · With that caveat in mind, reflection is a powerful technique and can enable applications to perform operations which would otherwise be impossible. Introspection (taken from archive of sun …

  7. Is it bad practice to use Reflection in Unit testing? [duplicate]

    Oct 11, 2014 · During the last years I always thought that in Java, Reflection is widely used during Unit testing. Since some of the variables/methods which have to be checked are private, it is somehow …

  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. Java Reflection Performance - Stack Overflow

    Jan 12, 2009 · Does creating an object using reflection rather than calling the class constructor result in any significant performance differences?

  10. How to determine if a type implements an interface with C# reflection

    Nov 8, 2016 · Does reflection in C# offer a way to determine if some given System.Type type models some interface?