5
我想实现一个方法,它接收一个类型并返回包含其基类型的所有程序集。使用Mono.Cecil查找类型层次结构程序集
例如:
类A
是一个基本类型(类A
属于组件C:\ A.DLL)
类B
从A
(类继承B
属于程序集c:\ B.dll)
类别个C
继承B
(类C
属于装配C:\ c.dll)
public IEnumerable<string> GetAssembliesFromInheritance(string assembly,
string type)
{
// If the method recieves type C from assembly c:\C.dll
// it should return { "c:\A.dll", "c:\B.dll", "c:\C.dll" }
}
我的主要问题是,AssemblyDefinition
从Mono.Cecil能不包含像位置的任何财产。
如何在给定AssemblyDefinition
的情况下找到组装位置?
谢谢!这是非常有用的:) – Elisha 2011-01-22 18:06:02