-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBug.cs
More file actions
40 lines (32 loc) · 895 Bytes
/
Bug.cs
File metadata and controls
40 lines (32 loc) · 895 Bytes
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
using System.Collections.Generic;
namespace Solution {
public class Bug {
private int id;
public int Id {
get { return id; }
set { id = value; }
}
private string name;
public string Name {
get { return name; }
set { name = value; }
}
private int status;
public int Status {
get { return status; }
set { status = value; }
}
const int count = 10;
public static List<Bug> GetBugList() {
List<Bug> result = new List<Bug>(count);
for (int i = 0; i < count; i++) {
Bug st = new Bug();
st.Name = "Bug" + i.ToString();
st.id = i;
st.Status = i % 3;
result.Add(st);
}
return result;
}
}
}