// Returns true if the specified IGameLogic implementation also // provides an implementation of IGameControl. public static bool GameLogicSupportsControlMessages(IGameLogic gameLogicInterface) { return (gameLogicInterface.GetType().GetInterface("IGameControl") != null); }