/
n-dimens
/
pascalabcnet
Обзор
Документация
Войти
/
n-dimens
/
pascalabcnet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Libraries/Debugger.Core/ThreadCollection.cs
42 строки
902 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 ThreadCollection: CollectionWithEvents<Thread> { public ThreadCollection(NDebugger debugger): base(debugger) {} Thread selected; public Thread Selected { get { return selected; } set { selected = value; } } public Thread Find(Predicate<Thread> predicate) { if (predicate == null) return null; foreach (var thread in this) { if (predicate(thread)) return thread; } return null; } internal bool Contains(ICorDebugThread corThread) { foreach(Thread thread in this) { if (thread.CorThread == corThread) return true; } return false; } } }