Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

one bug

$
0
0

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using System.Xml.Serialization;

         public static void ReadOpenLog()
        {
            if (File.Exists("OpenLog.xml"))
            {
                using (StreamReader reader = new StreamReader("OpenLog.xml"))
                {
                    try {
                        XmlSerializer xs = new XmlSerializer(typeof(List<string>));//Bug,use VS2012 this is ok.
                        HistoryFiles = xs.Deserialize(reader) as List<string>;
                    } catch (Exception ex) {
                        MessageBox.Show(ex.Message);
                        throw;
                    }

                }
            }
        }


Viewing all articles
Browse latest Browse all 1764

Trending Articles