回答編集履歴
5
インデント修正
test
CHANGED
@@ -38,11 +38,11 @@
|
|
38
38
|
|
39
39
|
{
|
40
40
|
|
41
|
-
|
41
|
+
new AAA(1, "data1"),
|
42
42
|
|
43
|
-
|
43
|
+
new AAA(2, "data2"),
|
44
44
|
|
45
|
-
|
45
|
+
};
|
46
46
|
|
47
47
|
|
48
48
|
|
@@ -52,11 +52,11 @@
|
|
52
52
|
|
53
53
|
{
|
54
54
|
|
55
|
-
|
55
|
+
new AAA { Id= 1, Text="data1" },
|
56
56
|
|
57
|
-
|
57
|
+
new AAA { Id= 2, Text="data2" },
|
58
58
|
|
59
|
-
|
59
|
+
};
|
60
60
|
|
61
61
|
|
62
62
|
|
4
少し修正
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
public AAA()
|
8
8
|
|
9
|
-
{
|
9
|
+
{
|
10
10
|
|
11
11
|
}
|
12
12
|
|
@@ -34,35 +34,35 @@
|
|
34
34
|
|
35
35
|
//クラスを使用(コンストラクタで初期化)
|
36
36
|
|
37
|
-
public static AAA[]
|
37
|
+
public static AAA[] array1 =
|
38
38
|
|
39
39
|
{
|
40
40
|
|
41
|
-
new AAA(1, "data1"),
|
41
|
+
new AAA(1, "data1"),
|
42
42
|
|
43
|
-
new AAA(2, "data2"),
|
43
|
+
new AAA(2, "data2"),
|
44
44
|
|
45
|
-
};
|
45
|
+
};
|
46
46
|
|
47
47
|
|
48
48
|
|
49
49
|
//クラスを使用(プロパティで初期化)
|
50
50
|
|
51
|
-
public static AAA[]
|
51
|
+
public static AAA[] array2 =
|
52
52
|
|
53
53
|
{
|
54
54
|
|
55
|
-
new AAA { Id= 1, Text="data1" },
|
55
|
+
new AAA { Id= 1, Text="data1" },
|
56
56
|
|
57
|
-
new AAA { Id= 2, Text="data2" },
|
57
|
+
new AAA { Id= 2, Text="data2" },
|
58
58
|
|
59
|
-
};
|
59
|
+
};
|
60
60
|
|
61
61
|
|
62
62
|
|
63
63
|
//Tupleを使用
|
64
64
|
|
65
|
-
public static (int Id, string Text)[]
|
65
|
+
public static (int Id, string Text)[] array3 =
|
66
66
|
|
67
67
|
{
|
68
68
|
|
@@ -72,8 +72,6 @@
|
|
72
72
|
|
73
73
|
};
|
74
74
|
|
75
|
-
|
76
|
-
|
77
75
|
```
|
78
76
|
|
79
77
|
|
3
少し修正
test
CHANGED
@@ -62,13 +62,13 @@
|
|
62
62
|
|
63
63
|
//Tupleを使用
|
64
64
|
|
65
|
-
public static
|
65
|
+
public static (int Id, string Text)[] data3 =
|
66
66
|
|
67
67
|
{
|
68
68
|
|
69
|
-
|
69
|
+
(1, "data1"),
|
70
70
|
|
71
|
-
|
71
|
+
(2, "data2"),
|
72
72
|
|
73
73
|
};
|
74
74
|
|
2
一部削除
test
CHANGED
@@ -74,34 +74,6 @@
|
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
-
public class BBB : Tuple<int, string>
|
78
|
-
|
79
|
-
{
|
80
|
-
|
81
|
-
public BBB(int item1, string item2) : base(item1, item2)
|
82
|
-
|
83
|
-
{
|
84
|
-
|
85
|
-
}
|
86
|
-
|
87
|
-
}
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
//Tupleを使用その2
|
92
|
-
|
93
|
-
public static BBB[] data4 =
|
94
|
-
|
95
|
-
{
|
96
|
-
|
97
|
-
new BBB(1, "data1"),
|
98
|
-
|
99
|
-
new BBB(2, "data2"),
|
100
|
-
|
101
|
-
};
|
102
|
-
|
103
|
-
|
104
|
-
|
105
77
|
```
|
106
78
|
|
107
79
|
|
1
少し修正
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
//クラスを使用(コンストラクタで初期化)
|
36
36
|
|
37
|
-
public static AAA[] data
|
37
|
+
public static AAA[] data1 =
|
38
38
|
|
39
39
|
{
|
40
40
|
|
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
//クラスを使用(プロパティで初期化)
|
50
50
|
|
51
|
-
public static AAA[] data
|
51
|
+
public static AAA[] data2 =
|
52
52
|
|
53
53
|
{
|
54
54
|
|