public void Save(IHighscoreTable table)
{
string json = JsonConvert.SerializeObject(table.Table.ToArray(), Formatting.Indented);
try
{
File.WriteAllText(this.FileName, json);
}
catch (Exception ex)
{
Logger.Error("Cannot save highscore in json file.", ex);
throw;
}
}