public FlowerRanking() { var plrList = new CharacterRepository().FetchAll(); var rank = new FlowerRepository().FetchAll(); foreach (var plr in rank) { var player = plrList.FirstOrDefault(x => x.Identity == plr.PlayerIdentity); if (player == null) { continue; } FlowerObject obj = new FlowerObject(plr) { PlayerName = plr.PlayerName, RedRoses = player.RedRoses, WhiteRoses = player.WhiteRoses, Orchids = player.Orchids, Tulips = player.Tulips, }; ServerKernel.FlowerRankingDict.TryAdd(player.Identity, obj); } ServerKernel.Log.SaveLog("Flower Ranking loaded...", true); }