zoukankan      html  css  js  c++  java
  • 获取所有程序集引用

    有的时候在进行反射操作时经常可能

    所射的类不是能过下面两种情况所能创建

    Assembly.GetCallingAssembly().CreateInstance("");
    Assembly.GetExecutingAssembly().CreateInstance("");

    所以可以在程序起来的时候,把当前所有的程序集获取到一个集合里面去

    然后想用的时候,只要知道程序集的dll名称,以及要返回的类的FullName就可以了

    下面就是获取当前项目中所有程序集的引用




  • 相关阅读:
    msyqld 的 The user specified as a definer ('root'@'%') does not exist 问题
    Python加密模块-pycryptodome
    【leetcode 简单】 第一百一十题 分发饼干
    Python数据类型-字典
    Python数据类型-集合(set)
    Python数据类型-列表(list)增删改查
    Python数据类型-元组
    Python 函数系列- Str
    Linux运维之shell脚本
    python之面向对象篇6
  • 原文地址:https://www.cnblogs.com/xiaotuni/p/2365665.html
Copyright © 2011-2022 走看看