public static CommonSettingRecord Load()
{
try
{
using (var sr = new StreamReader(CommonSettingFilename))
{
return new XmlSerializer(typeof(CommonSettingRecord))
.Deserialize(sr) as CommonSettingRecord;
}
}
catch (Exception)
{
var result = new CommonSettingRecord();
try
{
result.Save();
}
catch(Exception)
{
}
return result;
}
}