Ejemplo n.º 1
0
        public void TestBuild()
        {
            var cards = CardFactory.Build();

            for (var i = 0; i < cards.Length; i++)
            {
                System.Diagnostics.Debug.Write(cards[i].ToString());
            }
        }
Ejemplo n.º 2
0
        protected Card[] CardSource(int num)
        {
            var cards = (from card in (from card in CardFactory.Build().Take(num) select card)
                         orderby card.Num ascending, card.IsLarge descending
                         select card).ToArray();

            WriteLine(cards);
            return(cards);
        }