回答編集履歴
2
宣言の変更
test
CHANGED
@@ -16,9 +16,7 @@
|
|
16
16
|
|
17
17
|
{
|
18
18
|
|
19
|
-
public readonly string[] Title;
|
19
|
+
public readonly string[] Title, Data;
|
20
|
-
|
21
|
-
public readonly string[] Data;
|
22
20
|
|
23
21
|
public readonly string[][] Line;
|
24
22
|
|
1
型の変更
test
CHANGED
@@ -16,15 +16,15 @@
|
|
16
16
|
|
17
17
|
{
|
18
18
|
|
19
|
-
public readonly string Title;
|
19
|
+
public readonly string[] Title;
|
20
20
|
|
21
|
-
public readonly string Data;
|
21
|
+
public readonly string[] Data;
|
22
22
|
|
23
23
|
public readonly string[][] Line;
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
public Test(string title, string data, string[][] line)
|
27
|
+
public Test(string[] title, string[] data, string[][] line)
|
28
28
|
|
29
29
|
{
|
30
30
|
|
@@ -62,7 +62,7 @@
|
|
62
62
|
|
63
63
|
|
64
64
|
|
65
|
-
return new Test("title", "", oline);
|
65
|
+
return new Test(new string[] { "title" }, new string[] { "" }, oline);
|
66
66
|
|
67
67
|
}
|
68
68
|
|
@@ -74,7 +74,13 @@
|
|
74
74
|
|
75
75
|
var t = Layoutable();
|
76
76
|
|
77
|
+
|
78
|
+
|
77
|
-
Console.WriteLine("{0}, {1}",
|
79
|
+
Console.WriteLine("{0}, {1}",
|
80
|
+
|
81
|
+
string.Join(", ", t.Title), string.Join(", ", t.Data));
|
82
|
+
|
83
|
+
|
78
84
|
|
79
85
|
foreach (var l in t.Line)
|
80
86
|
|