BetterWaywo.Program.LoadConfig C# (CSharp) Method

LoadConfig() static private method

static private LoadConfig ( string path ) : void
path string
return void
        static void LoadConfig(string path)
        {
            if (!File.Exists(path))
            {
                throw new Exception("Could not find config file.");
            }

            Config = JsonConvert.DeserializeObject<Config>(File.ReadAllText(path));
        }