private bool AddHighscore(Highscore hs) { var count = Highscores.Count(x => x != null); var score = hs.Score; var index = GetIndexHS(Highscores, score); if (index >= Highscores.Count) { return(false); } Highscores.Add(hs); return(true); }
private bool AddHighscore(Highscore hs) { var count = Highscores.Count(x => x != null); var score = hs.Score; var index = GetIndexHS(Highscores, score); if (index >= Highscores.Count) { return(false); } Highscores.Add(hs); return(true); }