2 // System.Diagnostics.ProcessThreadCollection.cs
5 // Dick Porter (dick@ximian.com)
6 // Andreas Nahr (ClassDevelopment@A-SoftTech.com)
8 // (C) 2002 Ximian, Inc. http://www.ximian.com
11 using System.Collections;
13 namespace System.Diagnostics
15 public class ProcessThreadCollection : ReadOnlyCollectionBase
17 protected ProcessThreadCollection()
21 public ProcessThreadCollection(ProcessThread[] processThreads)
23 InnerList.AddRange (processThreads);
26 public ProcessThread this[int index] {
28 return (ProcessThread)InnerList[index];
32 public int Add(ProcessThread thread)
34 return InnerList.Add (thread);
37 public bool Contains(ProcessThread thread)
39 return InnerList.Contains (thread);
42 public void CopyTo(ProcessThread[] array, int index)
44 InnerList.CopyTo (array, index);
47 public int IndexOf(ProcessThread thread)
49 return InnerList.IndexOf (thread);
52 public void Insert(int index, ProcessThread thread)
54 InnerList.Insert (index, thread);
57 public void Remove(ProcessThread thread)
59 InnerList.Remove (thread);