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