reflection
Finding the implemented Class from an Interface
I have 2 classes that implment an interface. The interface is passed into a method as a parameter, and subsequently used as the T class in the following NHibernate syntax[详细]
2023-04-12 19:35 分类:问答How do I force loading of a specific assembly into every application domain of an MVC 2 application?
I have some loosely coupled code that depends on a specific assembly being loaded into the current application domain:[详细]
2023-04-12 18:27 分类:问答Using reflection to get property attributes from a metadata class
I have a LINQ generated class called Project. I wanted to add some attributes to the generated properties, so I defined a partial class with the MetadataType attribute.[详细]
2023-04-12 18:22 分类:问答How to use BluetoothHeadset class via reflection
I want to use methods of BluetoothHeadset class in Android 2.0+. Here is my code: Class bluetoothHeadsetClass = Class.forName(\"android.bluetooth.BluetoothHeadset\");[详细]
2023-04-12 17:26 分类:问答printLn and reflection
I created a simple class (1)public class Inspector implements ClassFileTransformer{ (2)public byte[] transform(ClassLoader loader,[详细]
2023-04-12 17:05 分类:问答Auditing and validating changes to C# class and structure properties in a high-performance way
I have several c# structs that give shape to structures in a very large data file.These structs interpret bits in the file\'s data words, and convert them to first-class properties. Here is an example[详细]
2023-04-12 14:58 分类:问答GetConstructor returning nothing
I have two different GetConstructors(), one is returning what it should be returning the other however is returning nothing.[详细]
2023-04-12 13:54 分类:问答Unable to load assembly in strongly signed silverlight code
In a Silverlight 4 app I\'m trying to instantiate an object whose type isn\'t known until run-time, usi开发者_如何转开发ng this code:[详细]
2023-04-12 10:14 分类:问答Using reflection to find DynamicMethods
I\'d like to somehow find all DynamicMethods in my current context, consider that I have the following method and delegate:[详细]
2023-04-12 08:55 分类:问答Can I set a property value with Reflection?
I know the name of a property in my C# class. Is it possible to use reflection to set the value of this property?[详细]
2023-04-12 06:03 分类:问答