Home >Backend Development >C#.Net Tutorial >Summarize the points to note about loading and unloading

Summarize the points to note about loading and unloading

巴扎黑
巴扎黑Original
2017-06-12 14:14:401458browse

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

Summarize the points to note about loading and unloading

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn