public static Assembly GetAssembly(string name) => ReflectionExtensions.GetLoadedAssemblies().FirstOrDefault <Assembly>((Func <Assembly, bool>)(i => i.FullName.StartsWith(name)));
public static IEnumerable <Assembly> GetLoadedAssemblies(string prefix) => ReflectionExtensions.GetLoadedAssemblies().Where <Assembly>((Func <Assembly, bool>)(a => a.FullName.StartsWith(prefix)));
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>();
public static IEnumerable <Assembly> GetProjectLoadedAssemblies( string projectNamespacePrefix) { return(ReflectionExtensions.GetLoadedAssemblies(projectNamespacePrefix)); }