示例#1
0
 public static Assembly GetAssembly(string name) => ReflectionExtensions.GetLoadedAssemblies().FirstOrDefault <Assembly>((Func <Assembly, bool>)(i => i.FullName.StartsWith(name)));
示例#2
0
 public static IEnumerable <Assembly> GetLoadedAssemblies(string prefix) => ReflectionExtensions.GetLoadedAssemblies().Where <Assembly>((Func <Assembly, bool>)(a => a.FullName.StartsWith(prefix)));
示例#3
0
 public static List <AssemblyName> GetLoadedAndReferencedAssemblies(string prefix) => ReflectionExtensions.GetLoadedAssemblies().SelectMany <Assembly, AssemblyName>((Func <Assembly, IEnumerable <AssemblyName> >)(i => (IEnumerable <AssemblyName>)i.GetReferencedAssemblies())).Where <AssemblyName>((Func <AssemblyName, bool>)(i => i.FullName.Contains(prefix))).Distinct <AssemblyName>().ToList <AssemblyName>();
示例#4
0
 public static IEnumerable <Assembly> GetProjectLoadedAssemblies(
     string projectNamespacePrefix)
 {
     return(ReflectionExtensions.GetLoadedAssemblies(projectNamespacePrefix));
 }