About 158,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 Use C++26 Reflections Properly and Make the Best Use of …

    Jul 19, 2024 · I'm exploring the upcoming C++26 reflections feature and I'm excited about its potential to simplify many tasks that involve introspection and metaprogramming. However, I'm …

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

  4. what is reflection in C#, what are the benefit. How to use it to get ...

    Jun 23, 2010 · Reflection lets your code call methods and properties that you didn't know about when the code was compiled. One of the built in classes that uses this is the XmlSerializer. …

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

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

    May 23, 2012 · I am trying to get the values from objects inside a list which is part of a main object. I have the main object which contains various properties which can be collections. …

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

    Sep 9, 2009 · class SampleClass { public long SomeProperty { get; set; } } public void SetValue(SampleClass instance, decimal value) { // value is of type decimal, but is in reality a …

  8. Reflection in Entity Framework C# - Stack Overflow

    Jul 18, 2014 · I am trying to use reflection to make a dynamic select through Entity Framework. The idea is that the method will get as parameters the column name, the value for each …

  9. How to dynamically create generic C# object using reflection?

    Oct 3, 2015 · public class Item { } public class Task<T> { } public class TaskA<T> : Task<T> { } public class TaskB<T> : Task<T> { } I want to dynamically create TaskA or TaskB using C# …

  10. Getting all types in a namespace via reflection - Stack Overflow

    Feb 4, 2012 · How do you get all the classes in a namespace through reflection in C#?