public bool Get() { var filename = "DefaultParameter.json"; using (var stream = new FileStream(filename, FileMode.Open)) using (var file = new StreamReader(stream)) { _defaultParameter = JsonConvert.DeserializeObject <DefaultParameter>(file.ReadToEnd()); } return(true); }
private Setting() { _defaultParameter = new DefaultParameter(); }
public bool Get() { var filename = "DefaultParameter.json"; using (var stream = new FileStream(filename, FileMode.Open)) using (var file = new StreamReader(stream)) { _defaultParameter = JsonConvert.DeserializeObject<DefaultParameter>(file.ReadToEnd()); } return true; }