回答編集履歴

1

見落としてたのでプロパティにした

2018/12/26 05:48

投稿

tamoto
tamoto

スコア4110

test CHANGED
@@ -8,13 +8,9 @@
8
8
 
9
9
  ```csharp
10
10
 
11
- private int count;
12
-
13
-
14
-
15
11
  public void Hoge(){
16
12
 
17
- this.count = 0;
13
+ common.Count = 0;
18
14
 
19
15
  Array.Sort(Array, common.ComparsionASC);
20
16
 
@@ -26,11 +22,15 @@
26
22
 
27
23
  //呼び出されたComparsion
28
24
 
25
+ public int Count { get; set; }
26
+
27
+
28
+
29
29
  public int ComparsionASC(string fileX, string fileY)
30
30
 
31
31
  {
32
32
 
33
- this.count++;
33
+ this.Count++;
34
34
 
35
35
  DateTime datetimeX = GetFileCreateOrRenovationDateTime(fileX);
36
36