/
n-dimens
/
pascalabcnet
Обзор
Документация
Войти
/
n-dimens
/
pascalabcnet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Libraries/Debugger.Core/ProcessCollection.cs
34 строки
875 B
Бондарев Иван
initial commit
14 май 2015, 22:35
14 май 2015, 22:35
e6e67c1
Код
Авторство
О чём код?
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using Debugger.Interop.CorDebug; namespace Debugger { public class ProcessCollection: CollectionWithEvents<Process> { public ProcessCollection(NDebugger debugger): base(debugger) {} internal Process this[ICorDebugProcess corProcess] { get { foreach (Process process in this) { if (process.CorProcess == corProcess) { return process; } } return null; } } protected override void OnRemoved(Process item) { base.OnRemoved(item); if (this.Count == 0) { // Exit callback and then terminate the debugger this.Debugger.MTA2STA.AsyncCall( delegate { this.Debugger.TerminateDebugger(); } ); } } } }