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

  2. Java Reflection Performance - Stack Overflow

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

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

  4. c# - 'casting' with reflection - Stack Overflow

    Sep 9, 2009 · Consider the following sample code: class SampleClass { public long SomeProperty { get; set; } } public void SetValue(SampleClass instance, decimal value) { // value is of type …

  5. c# - Reflection - Getting the generic arguments from a …

    Reflection - Getting the generic arguments from a System.Type instance Asked 17 years ago Modified 4 years, 11 months ago Viewed 26k times

  6. How can I get the value of a string property via Reflection?

    public class Foo { public string Bar {get; set;} } How do I get the value of Bar, a string property, via reflection? The following code will throw an exception if the PropertyInfo type is a System.

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

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

  9. Is there a way to set properties on struct instances using reflection?

    Jun 8, 2011 · The Height value (as reported by the debugger) never gets set to anything - it stays at the default value of 0. I have done plenty of reflection on classes before and this has worked …

  10. Reflection - Call constructor with parameters - Stack Overflow

    ParameterInfo[] parameters = classType.GetConstructors()[0].GetParameters(); I would like to call constructor with default parameter values or if parameter is enum, with first enum value. If …