Пример #1
0
 private Setting()
 {
     _defaultParameter = new DefaultParameter();
 }
Пример #2
0
        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;
        }