ICSharpCode.ILSpy.AssemblyList.GetAssemblies C# (CSharp) Метод

GetAssemblies() публичный Метод

Gets the loaded assemblies. This method is thread-safe.
public GetAssemblies ( ) : ICSharpCode.ILSpy.LoadedAssembly[]
Результат ICSharpCode.ILSpy.LoadedAssembly[]
		public LoadedAssembly[] GetAssemblies()
		{
			lock (assemblies) {
				return assemblies.ToArray();
			}
		}
		

Usage Example

Пример #1
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            ILSpySettings spySettings = this.spySettings;

            this.spySettings = null;

            // Load AssemblyList only in Loaded event so that WPF is initialized before we start the CPU-heavy stuff.
            // This makes the UI come up a bit faster.
            this.assemblyList = assemblyListManager.LoadList(spySettings, sessionSettings.ActiveAssemblyList);

            HandleCommandLineArguments(App.CommandLineArguments);

            if (assemblyList.GetAssemblies().Length == 0 &&
                assemblyList.ListName == AssemblyListManager.DefaultListName)
            {
                LoadInitialAssemblies();
            }

            ShowAssemblyList(this.assemblyList);

            if (sessionSettings.ActiveAutoLoadedAssembly != null)
            {
                this.assemblyList.Open(sessionSettings.ActiveAutoLoadedAssembly, true);
            }

            Dispatcher.BeginInvoke(DispatcherPriority.Loaded, new Action(() => OpenAssemblies(spySettings)));
#if DEBUG
            this.Title = $"ILSpy {RevisionClass.FullVersion}";
#endif
        }
All Usage Examples Of ICSharpCode.ILSpy.AssemblyList::GetAssemblies