public ReflectionProjectContent(Assembly assembly, string assemblyLocation, ProjectContentRegistry registry)
     : this(assembly.FullName, assemblyLocation, DomAssemblyName.Convert(assembly.GetReferencedAssemblies()), registry)
 {
     foreach (Type type in assembly.GetExportedTypes())
     {
         string name = type.FullName;
         if (name.IndexOf('+') < 0)                   // type.IsNested
         {
             AddClassToNamespaceListInternal(new ReflectionClass(assemblyCompilationUnit, type, name, null));
         }
     }
     ReflectionClass.AddAttributes(this, assemblyCompilationUnit.Attributes, CustomAttributeData.GetCustomAttributes(assembly));
     InitializeSpecialClasses();
 }
Esempio n. 2
0
 /// <summary>
 /// Adds assembly attributes from the specified assembly.
 ///
 /// The constructor already does this, this method is meant for unit tests only!
 /// </summary>
 public void AddAssemblyAttributes(Assembly assembly)
 {
     ReflectionClass.AddAttributes(this, assemblyCompilationUnit.Attributes, CustomAttributeData.GetCustomAttributes(assembly));
 }