Home >Backend Development >C#.Net Tutorial >Summarize the points to note about loading and unloading
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
[Related Q&A recommendations]:
The above is the detailed content of Summarize the points to note about loading and unloading. For more information, please follow other related articles on the PHP Chinese website!