reflection
Creating method dynamically, and executing it
Background: I want to define few static methods in C# , and generate IL code as byte array, from one of these methods, selected at runtime (on client), and send the byte array over network to another[详细]
2023-04-10 21:05 分类:问答C# Reflection - Get field values from a simple class
I have a class: class A { public string a = \"A-val\" , b = \"B-val\"; } I want to print the object members by reflection[详细]
2023-04-10 20:06 分类:问答Reflection and interfaces
I have a class that indirectly implements an interface (its superclass or super-duper class implements can implement ) and I want to know wheather a class i开发者_开发百科mplements an interface or not[详细]
2023-04-10 16:11 分类:问答scala reflection, cast type with asInstanceOf
I have trait T class C extends T compiled to .class files. Run scala with -cp <...> to have type T available. Then load class C using reflection:[详细]
2023-04-10 15:11 分类:问答Scala reflection behaves differently on interpreter and compiled code
I have trait T class C extends T compiled to .class files. And the piece of code below to load them: val loader = ScalaClassLoader fromURLs (/* List[URL] */)[详细]
2023-04-10 14:36 分类:问答Reflection error when creating an instance of a form
I\'ve been experimenting with an application that will scan an assembly, check for any classes that are forms and then see what members they have.[详细]
2023-04-10 10:49 分类:问答How to get arguments list of a built-in Python class constructor?
I\'m trying to use the inspect module, however it seems I can\'t use it on a built-in (native?) class, or else I misunderstood.[详细]
2023-04-10 07:06 分类:问答How to find the interface where the method is declared
I\'m using Unity for interception. Because I have many interfaces I\'m forced to using VirtualMethodInterceptor. In my behavior I would like to react only when the method called was declared in the pa[详细]
2023-04-10 06:05 分类:问答GetValue by reflection
i want to get each ToolStripMenuItem of my MDI form\'s value by looping through them and using reflection as following:[详细]
2023-04-10 05:53 分类:问答Assembly Loading, Type Creation & Caching
I am trying to write something like an ObjectFactory which, given an a开发者_运维百科ssembly\'s path and a name of a type in that assembly, returns an instance of that same type using Reflection. Sinc[详细]
2023-04-10 05:18 分类:问答