BattleShip.Core.GameHost.FindGame C# (CSharp) Method

FindGame() private method

private FindGame ( System.Guid gameId ) : Game
gameId System.Guid
return Game
        private Game FindGame(Guid gameId)
        {
            Game game;
            if (games.TryGetValue(gameId, out game))
            {
                return game;
            }

            throw new InvalidOperationException("No such game");
        }