Esempio n. 1
0
 public void GetNamespaces()
 {
     IEnumerable<string> namespaces = from c in _assembly.GetTypes()
                                      where GetVisible(c)
                                      select c.Namespace;
     foreach (string n in namespaces.Distinct())
     {
         NamespaceModel nmspc = new NamespaceModel() { Name = n };
         Namespaces.Add(nmspc);
         nmspc.AnalyseNamespace(_assembly, _classDictionary);
     }
 }
Esempio n. 2
0
        public void GetNamespaces()
        {
            IEnumerable <string> namespaces = from c in _assembly.GetTypes()
                                              where GetVisible(c)
                                              select c.Namespace;

            foreach (string n in namespaces.Distinct())
            {
                NamespaceModel nmspc = new NamespaceModel()
                {
                    Name = n
                };
                Namespaces.Add(nmspc);
                nmspc.AnalyseNamespace(_assembly, _classDictionary);
            }
        }