About 37,700,000 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. How to dynamically create generic C# object using reflection?

    Oct 3, 2015 · I want to dynamically create TaskA or TaskB using C# reflection (Activator.CreateInstance). However I wouldn't know the type before hand, so I need to …

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

  4. Reflection support in C - Stack Overflow

    Aug 30, 2009 · Reflection isn't supported in any existing at the moment C-standards. But still it's possible to get something very similar to this feature in Linux/MacOS/Windows if gcc/clang is …

  5. c# - Reflection. What can we achieve using it? - Stack Overflow

    Dec 13, 2009 · Using reflection you can take this string and create an instance of the object requested. If that object implements a known interface, then you can use it through ordinary …

  6. c# - Using reflection to get values from properties from a list of a ...

    May 23, 2012 · Using reflection to get values from properties from a list of a class Asked 13 years, 1 month ago Modified 12 years, 9 months ago Viewed 69k times

  7. Java: instantiating an enum using reflection - Stack Overflow

    Java: instantiating an enum using reflection Asked 14 years, 10 months ago Modified 7 years, 8 months ago Viewed 68k times

  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 …

  9. Using Reflection in .NET Core - Stack Overflow

    Mar 21, 2016 · For cross-platform development, I'm trying to make a .NET Core shared library. I used the Class Library (package) project template in VS 2015. My library needs to use a …

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