private static DPSServerSetting Load() { DPSServerSetting tmp = null; try { string json = File.ReadAllText(fileName); tmp = JsonConvert.DeserializeObject<DPSServerSetting>(json); } catch (Exception e) { tmp = new DPSServerSetting(); } return tmp; }
public static void Reload() { instance = Load(); }