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. Duplicate "System.Reflection.Assembly...Attribute" CS0579

    May 16, 2025 · // <autogenerated /> using System; using System.Reflection; [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v9.0", …

  3. 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 that loops over …

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

  5. Get property value from string using reflection - Stack Overflow

    I am trying implement the Data transformation using Reflection 1 example in my code. The GetSourceValue function has a switch comparing various types, but I want to remove these types …

  6. How to get the list of properties of a class? - Stack Overflow

    Apr 10, 2009 · Following feedback... To get the value of static properties, pass null as the first argument to GetValue To look at non-public properties, use (for example) GetProperties(BindingFlags.Public | …

  7. reflection - Loading DLLs at runtime in C# - Stack Overflow

    I am trying to figure out how you could go about importing and using a .dll at runtime inside a C# application. Using Assembly.LoadFile() I have managed to get my program to load the dll (this part...

  8. Java Reflection: Why is it so slow? - Stack Overflow

    Reflection is mostly used in connecting loosely-coupled components, i.e. in looking up concrete classes and methods, where only interfaces are known: dependeny-injection frameworks, instantiating JDBC …

  9. Creating instance of type without default constructor in C# using ...

    Jan 22, 2015 · Creating instance of type without default constructor in C# using reflection Asked 17 years, 1 month ago Modified 2 years, 4 months ago Viewed 106k times

  10. Why Reflection Calls Do Not Work Anymore in Java 17?

    Jul 21, 2022 · That is indeed private, but it should be possible to access it with deep reflection, shouldn't it? So my question would be then: how do I make a private static class accessible for deep reflection …