system.reflection
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 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 分类:问答How to call static method from ASP.NET MVC controller in C#
GetMethod does not find public static method if called from ASP .NET MVC controller. (From console application it work OK).[详细]
2023-04-04 20:08 分类:问答How can I delete the many-to-many relationship between two dynamic objects?
I want to delete the many-to-many relationship between two dynamic entities. I\'ve seen examples using dummy objects, but they were not dynamic. I will not know the object or the name of the objects\[详细]
2023-04-01 14:11 分类:问答System.Windows.PropertyPath - can this class help me with reflection on deep-nested properties (types)?
I\'ve been sitting lately on the topic of Reflection, mainly with the purpose of instantiating a New class and setting properties on fields.. By path...[详细]
2023-04-01 02:18 分类:问答Get List of Controls on each WebForm in an Assembly
Is it possible to get a plain text list of controls that are present on a webform using reflection? Basically a colleague is looking to get a list of controls to help define a validation strategy e.g.[详细]
2023-03-27 21:13 分类:问答Error while reflecting through custom attributes
I am trying to fetch the values of certain fields of a class based on their names and the presence of a customized attribute through reflection.[详细]
2023-03-24 01:10 分类:问答Finding the user defined members of an object
I am trying to create a function that performs a deep copy of c# objects by using Reflection. till now, I have been able to do that for arrays, but in case of Objects, how do I get to differentiate be[详细]
2023-03-23 11:22 分类:问答Conditionally instantiate a class in C#
I\'ve been busting my hump trying to get a 开发者_如何学Cnew code to work. I have been able to do this in a simpler but more extensive way, through if statements. However, as this is going to be versi[详细]
2023-03-19 19:53 分类:问答System.Reflection no methods
I\'m trying to enumerate all methods in an assembly and add them to nodes in a treeview: private void bOpen_Click(object sender, EventArgs e)[详细]
2023-03-16 14:42 分类:问答