| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // System.Diagnostics.ProcessThreadCollection.cs
- //
- // Authors:
- // Dick Porter ([email protected])
- // Andreas Nahr ([email protected])
- //
- // (C) 2002 Ximian, Inc. http://www.ximian.com
- //
- using System.Collections;
- namespace System.Diagnostics
- {
- public class ProcessThreadCollection : ReadOnlyCollectionBase
- {
- protected ProcessThreadCollection()
- {
- }
- public ProcessThreadCollection(ProcessThread[] processThreads)
- {
- InnerList.AddRange (processThreads);
- }
-
- public ProcessThread this[int index] {
- get {
- return (ProcessThread)InnerList[index];
- }
- }
- public int Add(ProcessThread thread)
- {
- return InnerList.Add (thread);
- }
- public bool Contains(ProcessThread thread)
- {
- return InnerList.Contains (thread);
- }
- public void CopyTo(ProcessThread[] array, int index)
- {
- InnerList.CopyTo (array, index);
- }
- public int IndexOf(ProcessThread thread)
- {
- return InnerList.IndexOf (thread);
- }
- public void Insert(int index, ProcessThread thread)
- {
- InnerList.Insert (index, thread);
- }
- public void Remove(ProcessThread thread)
- {
- InnerList.Remove (thread);
- }
- }
- }
|