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

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

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

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

  7. Javascript Reflection - Stack Overflow

    Sep 5, 2016 · Is there a way to get all methods (private, privileged, or public) of a javascript object from within? Here's the sample object: var Test = function() { // private methods function testOne() {...

  8. c# 9.0 records - reflection and generic constraints

    Jul 26, 2020 · perhaps reflection can detect the EqualityContract ? It is possible to determine if a class has such property, but I don't think this is a 100% guarantee that the class with such property is a …

  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. C#: Can someone explain the practicalities of reflection?

    Jan 7, 2015 · Reflection is a side-effect of the way .net is built and that Microsoft elected to expose the libraries they used to create Visual Studio and the .net run-time to developers outside of Microsoft. …