reflection
How do I create a mock using reflection with parameters using Moq?
I am trying to build a Generic testbuilder for generating objects, that i want to use in tests. One of the things I want to create is Mock implementations of interfaces. I want these Mocks to have Str[详细]
2023-04-08 18:37 分类:问答Working with Java JAR files from cmdline
Let us have a Java application, contained in files A.java and B.java with dependency on somejar.jar file. The questions are:[详细]
2023-04-08 18:08 分类:问答TypeDescriptor.GetProperties vs. Type.GetProperties
I\'m looking at some code where an MSDNauthor uses the following in different methods of the same class:[详细]
2023-04-08 15:23 分类:问答Can I do this without reflection?
For a pr开发者_JAVA百科esentation involving six components of a Person object\'s PersonName, I added an extension and a \'mini view model\' (PersonNamePropertyTextBox) to cut down on duplicated code a[详细]
2023-04-08 14:04 分类:问答Dynamic assembly selection and loading in runtime
I have an application that has reference to Microsoft.Data.SqlXml.dll assembly (part of SQLXML). But on different machines, depending on whether it\'s live environment or test, or developers local PC,[详细]
2023-04-08 11:02 分类:问答Find only non-inherited interfaces?
I am trying to perform a query on the interfaces of a class via reflectio开发者_StackOverflow中文版n, however the method Type.GetInterfaces() returns all the inherited interfaces also.[详细]
2023-04-08 09:31 分类:问答Get method names of un-managed components from Prog Ids using C#
I want to get the method names of un-managed components. I would be doing using the prog-id System.Type wiType = System.Type.GetTypeFromProgID(\"Wind开发者_Go百科owsInstaller.Installer\");[详细]
2023-04-08 08:54 分类:问答How to avoid code duplication in a Android Test Application?
Suppose I have an application that have similar buttons named button0, button1开发者_运维知识库, etc, up to button9.[详细]
2023-04-08 05:24 分类:问答Does Objective-C have reflection?
I\'m doing research about Objective-C, and I\'d like to know if it has th开发者_如何学JAVAe concept of reflection. None of the documents I\'ve found so far describes reflection.There are runtime funct[详细]
2023-04-08 04:13 分类:问答Cannot get selected type from GetTypes
I want to initialize classes in the following assembly wh开发者_StackOverflow中文版ich are inheriting from the EntityBase class using reflection.[详细]
2023-04-08 02:04 分类:问答