public void AssignDealer(Dealer dealer) { if (!(GameMode is IGameRules)) { throw new InvalidOperationException("Must assign a GameMode to table before assigning a Dealer"); } TableDealer = dealer; TableDealer.AssignGameMode(GameMode); }