-
Notifications
You must be signed in to change notification settings - Fork 0
/
DaoGpu.cs
66 lines (57 loc) · 1.54 KB
/
DaoGpu.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Collections;
namespace cec
{
public class DaoGpu
{
public string VGA { get; set; }
public string Algo { get; set; }
public string Hash { get; set; }
public string Power { get; set; }
public DaoGpu() { }
public DaoGpu(string vga, string algo, string hash, string power)
{
VGA = vga;
Algo = algo;
Hash = hash;
Power = power;
}
public class GpuCollect : ICollection
{
public string CollectionName;
private ArrayList dataArray = new ArrayList();
public DaoGpu this[int index]
{
get { return (DaoGpu)dataArray[index]; }
}
public void CopyTo(Array a, int index)
{
dataArray.CopyTo(a, index);
}
public int Count
{
get { return dataArray.Count; }
}
public object SyncRoot
{
get { return this; }
}
public bool IsSynchronized
{
get { return false; }
}
public IEnumerator GetEnumerator()
{
return dataArray.GetEnumerator();
}
public void Add(DaoGpu newgpu)
{
dataArray.Add(newgpu);
}
public DaoGpu Search(int index)
{
return (DaoGpu)dataArray[index];
}
}
}
}