2004-06-09 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System / System.Diagnostics / ProcessThreadCollection.cs
1 //
2 // System.Diagnostics.ProcessThreadCollection.cs
3 //
4 // Authors:
5 //   Dick Porter (dick@ximian.com)
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 //
8 // (C) 2002 Ximian, Inc.  http://www.ximian.com
9 //
10
11 using System.Collections;
12
13 namespace System.Diagnostics 
14 {
15         public class ProcessThreadCollection : ReadOnlyCollectionBase 
16         {
17                 protected ProcessThreadCollection() 
18                 {
19                 }
20
21                 public ProcessThreadCollection(ProcessThread[] processThreads) 
22                 {
23                         InnerList.AddRange (processThreads);
24                 }
25                 
26                 public ProcessThread this[int index] {
27                         get {
28                                 return (ProcessThread)InnerList[index];
29                         }
30                 }
31
32                 public int Add(ProcessThread thread) 
33                 {
34                         return InnerList.Add (thread);
35                 }
36
37                 public bool Contains(ProcessThread thread) 
38                 {
39                         return InnerList.Contains (thread);
40                 }
41
42                 public void CopyTo(ProcessThread[] array, int index) 
43                 {
44                         InnerList.CopyTo (array, index);
45                 }
46
47                 public int IndexOf(ProcessThread thread) 
48                 {
49                         return InnerList.IndexOf (thread);
50                 }
51
52                 public void Insert(int index, ProcessThread thread) 
53                 {
54                         InnerList.Insert (index, thread);
55                 }
56
57                 public void Remove(ProcessThread thread) 
58                 {
59                         InnerList.Remove (thread);
60                 }
61         }
62 }