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