public ICard GetNextCard() { ICard nextCard; try { nextCard = Cards[Cards.Count - 1]; Cards.Remove(nextCard); } catch (IndexOutOfRangeException) { nextCard = new NullCard(); } return nextCard; }
public ICard GetNextCard() { ICard nextCard; try { nextCard = Cards[Cards.Count - 1]; Cards.Remove(nextCard); } catch (IndexOutOfRangeException) { nextCard = new NullCard(); } return(nextCard); }