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