/// <summary> /// Froms the assemblies. /// </summary> /// <param name="assemblyFiles">The assembly files.</param> /// <returns></returns> public static AssemblyDescriptor FromAssemblies(IEnumerable <string> assemblyFiles) { var assemblies = assemblyFiles.Select(GetAssembly).ToList(); return(AssemblyDescriptorFactory.CreateFromAssemblies(assemblies)); }
/// <summary> /// Froms the assembly. /// </summary> /// <param name="type">The type.</param> /// <returns></returns> public static AssemblyDescriptor FromAssembly(Type type) { return(AssemblyDescriptorFactory.CreateFromAssembly(Assembly.GetAssembly(type))); }
/// <summary> /// Froms the assembly. /// </summary> /// <param name="assemblyFile">The assembly file.</param> /// <returns></returns> public static AssemblyDescriptor FromAssembly(string assemblyFile) { var assembly = GetAssembly(assemblyFile); return(AssemblyDescriptorFactory.CreateFromAssembly(assembly)); }
/// <summary> /// Froms the this assembly. /// </summary> /// <returns></returns> public static AssemblyDescriptor FromThisAssembly() { return(AssemblyDescriptorFactory.CreateFromAssembly(Assembly.GetCallingAssembly())); }