About 50 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. 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. You can pass it …

  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 class for example.

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

  5. c# - Real world uses of Reflection.Emit - Stack Overflow

    I remember seeing Relection.Emit used in chapter 8: "On-the-Fly Code Generation for Image Processing" of Beautiful Code. Basicly the author specializes a function for doing a certain set of …

  6. go - reflection on embedded structs - Stack Overflow

    Nov 11, 2023 · type B struct { X string Y string } type D struct { B Z string } I want to reflect on D and get to the fields X, Y, Z. Intuitively, before attempting the solution, I was assuming I would be able to …

  7. c# - How slow is Reflection - Stack Overflow

    Feb 2, 2016 · Edit: while the point about relative performance remains, and while the most important thing, "measure it", remains, I should clarify some of the above. Sometimes... it does matter. …

  8. c# - How costly is .NET reflection? - Stack Overflow

    Aug 24, 2008 · Use the api at fasterflect.codeplex.com. It will speed up reflection by like 500x for getters/setters/invokers and some other stuff. Source and info on how it works is there too if you …

  9. c# - Could not load file or assembly System.Memory, Version=4.0.1.1 ...

    Sep 2, 2024 · Could not load file or assembly 'System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest …

  10. c# - 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 couple reflection …