Beispiel #1
0
 public override string ToString()
 {
     if (ObjectCardArray != null)
     {
         return(ObjectCardArray[0].CardSuit.ToString() + ObjectCardArray[0].CardNumber.ToString() + " to "
                + ObjectCardArray[ObjectCardArray.Count - 1].CardSuit.ToString() + ObjectCardArray[ObjectCardArray.Count - 1].CardNumber.ToString()
                + " → " + ObjectStack.ToString());
     }
     else
     {
         return(SingleCard.CardSuit.ToString() + SingleCard.CardNumber.ToString() + " → " + ObjectStack.ToString());
     }
 }