Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ProcessThreadCollection.cs
Go to the documentation of this file.
2
3namespace System.Diagnostics;
4
6{
7 public ProcessThread this[int index] => (ProcessThread)base.InnerList[index];
8
10 {
11 }
12
13 public ProcessThreadCollection(ProcessThread[] processThreads)
14 {
15 base.InnerList.AddRange(processThreads);
16 }
17
18 public int Add(ProcessThread thread)
19 {
20 return ((IList)base.InnerList).Add((object?)thread);
21 }
22
23 public void Insert(int index, ProcessThread thread)
24 {
25 base.InnerList.Insert(index, thread);
26 }
27
28 public int IndexOf(ProcessThread thread)
29 {
30 return base.InnerList.IndexOf(thread);
31 }
32
33 public bool Contains(ProcessThread thread)
34 {
35 return base.InnerList.Contains(thread);
36 }
37
38 public void Remove(ProcessThread thread)
39 {
40 base.InnerList.Remove(thread);
41 }
42
43 public void CopyTo(ProcessThread[] array, int index)
44 {
45 base.InnerList.CopyTo(array, index);
46 }
47
48 internal void Dispose()
49 {
50 IEnumerator enumerator = GetEnumerator();
51 try
52 {
53 while (enumerator.MoveNext())
54 {
55 ProcessThread processThread = (ProcessThread)enumerator.Current;
56 processThread.Dispose();
57 }
58 }
59 finally
60 {
61 IDisposable disposable = enumerator as IDisposable;
62 if (disposable != null)
63 {
64 disposable.Dispose();
65 }
66 }
67 }
68}
ProcessThreadCollection(ProcessThread[] processThreads)
void CopyTo(ProcessThread[] array, int index)
void Insert(int index, ProcessThread thread)