示例#1
0
        /// <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));
        }
示例#2
0
 /// <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)));
 }
示例#3
0
        /// <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));
        }
示例#4
0
 /// <summary>
 /// Froms the this assembly.
 /// </summary>
 /// <returns></returns>
 public static AssemblyDescriptor FromThisAssembly()
 {
     return(AssemblyDescriptorFactory.CreateFromAssembly(Assembly.GetCallingAssembly()));
 }