質問編集履歴
1
不要なコード削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
{
|
20
20
|
|
21
|
-
private Dictionary<string, int>
|
21
|
+
private Dictionary<string, int> hogeDic;
|
22
22
|
|
23
23
|
|
24
24
|
|
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
{
|
28
28
|
|
29
|
-
|
29
|
+
hogeDic = dic;
|
30
30
|
|
31
31
|
}
|
32
32
|
|
@@ -36,17 +36,7 @@
|
|
36
36
|
|
37
37
|
{
|
38
38
|
|
39
|
-
return
|
39
|
+
return hogeDic[x].CompareTo(hogeDic[y]);
|
40
|
-
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
public int Compare(Person x, Person y)
|
46
|
-
|
47
|
-
{
|
48
|
-
|
49
|
-
return dic1[x.Id].CompareTo(dic1[y.Id]);
|
50
40
|
|
51
41
|
}
|
52
42
|
|