Exemplo n.º 1
0
 /// <summary>
 /// Paramaterized Constructor - Creates a deck from the given collection
 /// </summary>
 /// <param name="newCards">The collection to use</param>
 public Deck(CardCollection newCards)
 {
     cards = newCards;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new Card out of Range exception
 /// </summary>
 /// <param name="sourceDeckContents">The source deck that raised the exception</param>
 public CardOutOfRangeException(CardCollection sourceDeckContents) :
     base("There are only 52 cards in the deck.")
 {
     deckContents = sourceDeckContents;
 }