public static T Load <T>() where T : JsonSettingsBase, new() { T result = new T(); string fileName = result.GetFullPath(); if (File.Exists(fileName)) { result = JsonFile.Load <T>(fileName); } return(result ?? new T()); }
public void Save(Action <JsonSerializerSettings> updateSettings = null) { JsonFile.Save(GetFullPath(), this, updateSettings); }
public void Save() { JsonFile.Save(GetFullPath(), this); }