About 28,700,000 results
Open links in new tab
  1. 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 …

  2. reflection - C# Using Activator.CreateInstance - Stack Overflow

    Mar 11, 2011 · I asked a question yesterday regarding using either reflection or Strategy Pattern for dynamically calling methods. However, since then I have decided to change the methods …

  3. How to solve: "exception was thrown by the target of invocation" C#

    Oct 22, 2015 · System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> ProtoBuf.ProtoException: Incorrect wire-type deserializing TimeSpan

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

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

  6. c# - Duplicate AssemblyVersion Attribute - Stack Overflow

    Apr 25, 2012 · The Eric L. Anderson's post "Duplicate ‘System.Reflection.AssemblyCompanyAttribute’ attribute" describes 3 options : remove the …

  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 …

  8. reflection - C# getting its own class name - Stack Overflow

    Jan 21, 2010 · If I have a class called MyProgram, is there a way of retrieving "MyProgram" as a string?

  9. How to determine if a type implements an interface with C

    Nov 8, 2016 · Does reflection in C# offer a way to determine if some given System.Type type models some interface? public interface IMyInterface {} public class MyType : IMyInterface {} // …

  10. .net - C# "is" operator - is that reflection? - Stack Overflow

    Jul 15, 2009 · If you consider casting reflection then this is also reflection. EDIT: After some research I have discovered that a cast is performed in IL på the castclass instruction while the …