本文介绍了如何通过名称获取C#.Net程序集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有类似的东西

AppDomain.CurrentDomain.GetAssemblyByName("TheAssemblyName")

因此,我们不必直接遍历AppDomain.CurrentDomain.GetAssemblies(),而是可以直接获取特定的程序集.

so instead of looping through AppDomain.CurrentDomain.GetAssemblies(), we could just get the specific assembly directly.

推荐答案

您是否尝试过查看 Assembly.Load(...)?

这篇关于如何通过名称获取C#.Net程序集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 01:46