示例#1
0
        public override string ToString()
        {
            StringBuilder ret = new StringBuilder();

            ret.Append("CardCollection " + name + " (CC TYPE: " + type.ToString() + ")\r\n");
            if (cards.Count == 0)
            {
                ret.Append("|CardCollection is empty|\r\n");
            }
            foreach (Card card in cards)
            {
                ret.Append(card.ToString() + "\r\n");
            }
            return(ret.ToString());
        }
示例#2
0
 public override string ToString()
 {
     return(owner.ToString());
 }