About 25,300,000 results
Open links in new tab
  1. Reflection - get attribute name and value on property

    In my main method, I'm using reflection and wish to get key value pair of each attribute for each property. So in this example, I'd expect to see "Author" for attribute name and "AuthorName" for the …

  2. How do I call a generic method using a Type variable?

    In cases where reflection is used to call a method, it's usual that the method name is itself discovered by another method. Knowing the method name in advance isn't common.

  3. How do I use reflection to invoke a private method?

    Reflection is slow. Private members reflection breaks encapsulation principle and thus exposing your code to the following : Increase complexity of your code because it has to handle the inner behavior …

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

  5. Can I change a private readonly field in C# using reflection?

    This uses reflection to get all the properties of a new empty entity, and matches the property/field name to the column in the resultset, and set's it using propertyinfo.setvalue (). I don't want anyone else to …

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

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

  8. C# Reflection: How to get class reference from string?

    C# Reflection: How to get class reference from string? Asked 16 years, 5 months ago Modified 6 years, 1 month ago Viewed 211k times

  9. Using reflection in C# to get properties of a nested object

    Using reflection in C# to get properties of a nested object Asked 15 years, 11 months ago Modified 3 years, 4 months ago Viewed 127k times

  10. c# - Reflection (?) - Check for null or empty for each property/field ...

    Reflection (?) - Check for null or empty for each property/field in a class? Asked 14 years, 4 months ago Modified 7 years, 5 months ago Viewed 35k times