コード例 #1
0
        static void Main(string[] args)
        {
            var geoObjects = new StreetParser().Download();
            var tw         = new StreamWriter(new FileStream("res.xml", FileMode.Create), new UTF8Encoding());

            new XmlSerializer(typeof(List <Street>)).Serialize(tw, geoObjects);
        }
コード例 #2
0
 static void Main(string[] args)
 {
     var geoObjects = new StreetParser().Download();
     var tw = new StreamWriter(new FileStream("res.xml", FileMode.Create), new UTF8Encoding());
     new XmlSerializer(typeof (List<Street>)).Serialize(tw, geoObjects);
 }