質問編集履歴

1

不要なコード削除

2019/06/03 13:44

投稿

galmacher
galmacher

スコア37

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  {
20
20
 
21
- private Dictionary<string, int> dic;
21
+ private Dictionary<string, int> hogeDic;
22
22
 
23
23
 
24
24
 
@@ -26,7 +26,7 @@
26
26
 
27
27
  {
28
28
 
29
- this.dic = dic;
29
+ hogeDic = dic;
30
30
 
31
31
  }
32
32
 
@@ -36,17 +36,7 @@
36
36
 
37
37
  {
38
38
 
39
- return dic1[x].CompareTo(dic1[y]);
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