In order to describe the problem clearly, let's first look at an example. In this example, there is a button on the WinForm. When the user clicks the button, an existing Assembly will be loaded, and the FullName of the Assembly will be displayed on the Label control of the interface. Friends who are slightly familiar with Reflection know that this is a very simple thing. You only need to use the Assembly.LoadFile method to obtain the Assembly, and then use the FullName attribute to display it. For example, the following code: private void button1_Click(object sender, EventArgs e ) { Assembly assembly = Assembly.LoadFile(@"C:\t
1. Detailed explanation of the dynamic loading and unloading code of AppDomain and Assembly
Introduction: In order to describe the problem clearly, let's first look at an example. In this example, there is a button on the WinForm. When the user clicks the button, An existing Assembly will be loaded, and the FullName of the Assembly will be displayed on the Label control of the interface. Friends who are slightly familiar with Reflection know that this is a very simple matter. You only need to use the Assembly.LoadFile method to obtain the Assembly. Then use the FullName attribute to display it, such as the following
Introduction: .net code private Type GetType(string className) { // Creates current domain. AppDomain currentDomain = AppDomain.CurrentDomain; // Makes an array for the list of assemblies. Assemb...
3. ACCESS: SQL statement for cross-database query_MySQL
Introduction: Access Problem description: Sometimes it is necessary to query and obtain the required record set in the tables of two or three databases through related keywords. This cannot be achieved with ordinary SQL query statements. This can be achieved through the cross-database query function of ACCESS. Solution: For example, the two tables "Content Type" and "Content Material" are in different databases. The specific query method is as follows: @"Select * from Container Type as a INNER JOIN [;database=" AppDomain. Cu
【Related Q&A recommendations】:
The above is the detailed content of Recommended 10 AppDomain source codes (collection). For more information, please follow other related articles on the PHP Chinese website!