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

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

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

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

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

  6. 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?

  7. Java Reflection Performance - Stack Overflow

    Does creating an object using reflection rather than calling the class constructor result in any significant performance differences?

  8. c# - Set object property using reflection - Stack Overflow

    Is there a way in C# where I can use reflection to set an object property? Ex: MyObject obj = new MyObject(); obj.Name = "Value"; I want to set obj.Name with reflection. Something like: Reflection.

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

  10. Reflection support in C - Stack Overflow

    Aug 30, 2009 · Reflection as analysis is generally very weak; usually it can only provide access to function and field names. This weakness comes from the language implementers essentially not …