質問編集履歴
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -74,41 +74,41 @@
|
|
74
74
|
|
75
75
|
{
|
76
76
|
|
77
|
-
public static void Main(string[] args)
|
77
|
+
public static void Main(string[] args)
|
78
78
|
|
79
|
-
{
|
79
|
+
{
|
80
80
|
|
81
|
-
ArrayList arr = new ArrayList();
|
81
|
+
ArrayList arr = new ArrayList();
|
82
82
|
|
83
|
-
arr.Add(
|
83
|
+
arr.Add(
|
84
84
|
|
85
|
-
new array(
|
85
|
+
new array(
|
86
86
|
|
87
|
-
new string[] { "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" },
|
87
|
+
new string[] { "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" },
|
88
88
|
|
89
|
-
new string[] { "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" }
|
89
|
+
new string[] { "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" }
|
90
90
|
|
91
|
-
)
|
91
|
+
)
|
92
92
|
|
93
|
-
);
|
93
|
+
);
|
94
94
|
|
95
95
|
|
96
96
|
|
97
|
-
Type[] et = new Type[] { typeof(array) };
|
97
|
+
Type[] et = new Type[] { typeof(array) };
|
98
98
|
|
99
99
|
|
100
100
|
|
101
|
-
XmlSerializer serializer = new XmlSerializer(typeof(ArrayList), et);
|
101
|
+
XmlSerializer serializer = new XmlSerializer(typeof(ArrayList), et);
|
102
102
|
|
103
|
-
StreamWriter stwrite = new StreamWriter(@"C:\sample.xml", false, new UTF8Encoding(false));
|
103
|
+
StreamWriter stwrite = new StreamWriter(@"C:\sample.xml", false, new UTF8Encoding(false));
|
104
104
|
|
105
|
-
serializer.Serialize(stwrite, arr);
|
105
|
+
serializer.Serialize(stwrite, arr);
|
106
106
|
|
107
|
-
stwrite.Close();
|
107
|
+
stwrite.Close();
|
108
108
|
|
109
|
-
}
|
109
|
+
}
|
110
110
|
|
111
|
-
}
|
111
|
+
}
|
112
112
|
|
113
113
|
```
|
114
114
|
|