Exemplo n.º 1
0
 private void InitAssemblyCache()
 {
     if (this.assemblies != null)
     {
         return;
     }
     this.assemblies = DualityApp.GetLoadedAssemblies().ToArray();
     this.namespaces = this.assemblies
                       .SelectMany(a => a.GetExportedTypes())
                       .Select(t => t.Namespace)
                       .Distinct()
                       .Where(n => !string.IsNullOrEmpty(n))
                       .ToArray();
 }